kolloldas / torchnlp

Easy to use NLP library built on PyTorch and TorchText
Apache License 2.0
254 stars 44 forks source link

Solve eval & interactive error #13

Closed JudeLee19 closed 4 years ago

JudeLee19 commented 5 years ago

After training is done, when you use evaluate or interactive function then can not use model.vocab_tags. The reason is 'model.load' returns tuple but in 'main.py', only use one variable to get a 'model.load' function (which is kind of tuple). So I added one more variable to get a model variable appropriately.

kolloldas commented 4 years ago

Thanks for the change @JudeLee19 ! Sorry I haven't been able to find time to maintain this repo