aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.31k stars 337 forks source link

FIX: BaseBlob.words(self) incorrect docstring #115

Closed ljleppan closed 6 years ago

ljleppan commented 7 years ago

The docstring for BaseBlob.words(self) was incorrectly claiming to return a list of tokens without punctuation characters and advised users to use BaseBlob.tokens(self) if punctuation was required. In reality, BaseBlob.words(self) is simply an alias for BaseBlob.tokens(self).

In the name of backwards compability (considering that there are no bug reports of this in the GitHub Issues) this commit simply corrects the documentation rather than changing the implementation.