Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vocabulary object. Model loading infers RNN size. #38

Merged
merged 13 commits into from
Jul 18, 2021

Conversation

annaproxy
Copy link
Collaborator

#26 Vocabulary object implemented. Vocabulary is assumed to be loaded from a text file. Multiple models can share the same vocabulary. It should therefore be sorted, so no weird mismatches happen.
It is checked during loading of a model whether vocabulary is the same size.

#31 Model loading now inferns the RNN size from the current architecture. For future architectures, such as multiple layers, we should make sure this still happens.

@annaproxy annaproxy added the enhancement New feature or request label Jul 18, 2021
@annaproxy annaproxy requested a review from Sasafrass July 18, 2021 18:31
Copy link
Owner

@Sasafrass Sasafrass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LVGTM. Not a lot of comments - at least no blocking comments, so I'll approve so that you can continue with merging if you wish haha

app/ml_models/rnn/data_tools.py Outdated Show resolved Hide resolved
app/ml_models/rnn/data_tools.py Outdated Show resolved Hide resolved
app/ml_models/rnn/loaded_rnn_model.py Show resolved Hide resolved
app/ml_models/rnn/loaded_rnn_model.py Show resolved Hide resolved
app/ml_models/rnn/vocabulary.py Outdated Show resolved Hide resolved
app/ml_models/rnn/vocabulary.py Show resolved Hide resolved
annaproxy and others added 3 commits July 18, 2021 21:20
Co-authored-by: Sasafrass <36883067+Sasafrass@users.noreply.github.com>
Co-authored-by: Sasafrass <36883067+Sasafrass@users.noreply.github.com>
Co-authored-by: Sasafrass <36883067+Sasafrass@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants