I previously used the NgramModel class in nltk with no errors. However, I recently upgraded nltk to version 3.1 , and I can no longer find the NgramModel class. When I try to import as usual:
from nltk.model import NgramModel
I get an error
ImportError: No module named 'nltk.model' .
Was the NgramModel or model module recently replaced?
source share