Connected various POS and NER models to classes to check_branch #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#3
Converted the POS and NER models to classes.
While testing I encountered issues with the Word_Emeddings files, glove50.txt and sumerian_word2vec_50.txt both contained a line that was unreadable by the model and hence removed it.
The following is a short file that describes the issues I faced while trying to execute the files (the issue occurs even with the original CLI (prediction.py) files).:
POS_CRF, NER_CRF = prediction via pipeline working FINE, POS_NER to conll working FINE
POS_HMM = prediction via pipeline working FINE, POS_NER to conll list index out of range
POS_Bi_LSTM, NER_Bi_LSTM = prediction via pipeline working FINE, POS_NER to conll working FINE
POS_Bi_LSTM_CRF = prediction via pipeline working FINE, POS_NER to conll working FINE
NER_Bi_LSTM_CRF = Key Error, (possible issue with sumerian_vocab.pkl file created while training)
Note: POS_Bi_LSTM_CRF this works when MAX is set to 19.