japerk / nltk-trainer

Train NLTK objects with zero code
http://nltk-trainer.readthedocs.org/en/latest/
Apache License 2.0
747 stars 225 forks source link

Problem when saving (filename not created correctly) #22

Closed robbertvanginkel closed 10 years ago

robbertvanginkel commented 10 years ago

I just tried training a chuncked classifier on the conll2002 dataset, i ran the following command:

python train_chunker.py conll2002 --fileids ned.train --classifier NaiveBayes

Training succeeds but upon saving the following error occurs:

Traceback (most recent call last):
  File "train_chunker.py", line 210, in <module>
    name = '%s.pickle' % '_'.join(parts)
TypeError: sequence item 1: expected string, list found

I worked around this by using the --filename flag, but thought I'd submit the bugreport anyway.

japerk commented 10 years ago

Thanks, this should be fixed in the latest code