Firstly I was thinking to use the same approach as in solution for #507, i.e. differentiate code for python2 and python3. Then figured out, that to check whether a string is ascii, we might as well use .encode('ascii') instead of `.dec…
Adding basic examples for both parameters in the train method.
fixes #1277
Address the small issue in #1877
Anything else I should do here? I may need some help with the unit testing framework going further.
I choose just to import future as it seems the repo is moving towards support python 3. Of co…
Fixed missing parenthesis found by @drevicko
There was a missing parenthesis on my MASI code, see
https://github.com/DrDub/nltk/commit/e8bbbd4cd4cc7cb6414cb78959b0641ef22ba9f9#commitcomment-18577279
for details. Thanks to @drevicko …
This addresses #815. Tested to ensure nothing broke. Also, converted integer division to //.
Changed several sphinx :rtype: dict to be more specific as per #1116. Also, changed list to list(str), tuple to tuple(float) and such, where applicable.