Hironsan / anago

Bidirectional LSTM-CRF and ELMo for Named-Entity Recognition, Part-of-Speech Tagging and so on.
https://anago.herokuapp.com/
MIT License
1.48k stars 371 forks source link

dry out: reuse method Sequence.predict() in Sequence.score() #116

Open nkrot opened 4 years ago

nkrot commented 4 years ago

Originally, the method Sequence.predict() was created by copying code from the method Sequence.score(). I removed duplicate code in score() in favour of a call to predict().