You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test.py", line 1, in <module>
from model_wrappers import Seq2Seq
File "/Users/petri/Code/finnlem/src/model_wrappers.py", line 13, in <module>
from nltk.tokenize.moses import MosesDetokenizer
ModuleNotFoundError: No module named 'nltk.tokenize.moses'
This is because MosesTokenizer has been moved out of NLTK due to licensing issues. See for example pytorch/text#306 .
Apparently sacremoses package is now recommended as replacement.
The text was updated successfully, but these errors were encountered:
Sorry for the late reply, and thanks for reporting this. Since this was just a hobby project, I was expecting that something would break up at some point :)
But luckily, I was happy to see that the Turku NLP Group had just recently released a paper, and the related neural parser, which (afaik) uses a similar approach for lemmatization. So, unless you just want to learn how the seq2seq model works here, I would recommend using their parser for actual lemmatization tasks.
Trying to use finnlem results in error:
This is because MosesTokenizer has been moved out of NLTK due to licensing issues. See for example
pytorch/text#306 .
Apparently
sacremoses
package is now recommended as replacement.The text was updated successfully, but these errors were encountered: