New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HiddenMarkovModelTrainer train_unsupervised - TypeError #1859
Comments
This also happens using python 3.6.2 with NLTK 3.2.5 |
…domProbDist and MutableProbDist
…vModelTrainer Issue #1859: TypeError in HiddenMarkovModelTrainer train_unsupervised
I am following up on issue #1873. I was getting the error with NLTK version 3.2.4. I saw the commit to fix this issue was in version 3.2.5 so I downloaded that but I still get the same error. Any ideas why? |
The updates in the git repo aren't yet reflected in the nltk pip package. I would suggest pulling the updates in the commits and working with it. |
Hello,
I'm trying to use the
train_unsupervised
method from thenltk.hmm
module, however, it's throwing the following TypeError:TypeError: Can't instantiate abstract class RandomProbDist with abstract methods max
Here is the code I'm using:
Here's the full error:
Traceback (most recent call last): File "test.py", line 10, in <module> ('c', '') File "/Library/Python/2.7/site-packages/nltk/tag/hmm.py", line 932, in train_unsupervised priors = RandomProbDist(self._states) TypeError: Can't instantiate abstract class RandomProbDist with abstract methods max
NLTK version 3.2.5; tested on Python 2.7.10 and Python 2.7.14.
Am I doing something silly wrong?
Thank you very much.
The text was updated successfully, but these errors were encountered: