On 6/30/2018 8:57 AM, Sharan Basappa wrote:
A code I am using as reference has the following line: from nltk.stem.lancaster import LancasterStemmer
The CapitalName indicates a class.
I am inferring the following based on above: 1) nltk is a package 2) nltk itself may have module because I see - nltk.word_tokenize(pattern['sentence']) in the code
word_tokenize is a function.
3) nltk has a package named stem which has another package named Lancaster that has LancasterStemmer package
Sometimes one should read the docs instead of guessing. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list