sloria / textblob-aptagger

*Deprecated* A fast and accurate part-of-speech tagger for TextBlob.
MIT License
104 stars 41 forks source link

bug? predict returning a single string or dict? #10

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi, I am finding the following piece of code confusing:

At line 93 of _perceptron.py, variable scores holds the result of the prediction. Per the prediction method, this returns exactly one string here (a label, which is out of the maximum score). But, in the next line, scores variable is treated as a dictionary?

Best, JV