Is There An Alternate For The Now Removed Module 'nltk.model.ngrammodel'?
I've been trying to find out an alternative for two straight days now, and couldn't find anything relevant. I'm basically trying to get a probabilistic score of a synthesized sent
Solution 1:
According to this open issue on the nltk repo, NGramModel
is currently not in master because of some bugs. Their current solution is to install the code from the model branch. This is about 8 months behind master though, so you might miss out on other features and bug fixes.
pip install https://github.com/nltk/nltk/tarball/model
The relevant code is here in the model branch. You could copy this to your local code if you don't want to use the outdated branch. If you really care about using this you could try to fix the outstanding bugs on it and submit a pull request.
Post a Comment for "Is There An Alternate For The Now Removed Module 'nltk.model.ngrammodel'?"