Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect documentation in nltk.stem.lancaster.LancasterStemmer class #3179

Open
Smeetp1234 opened this issue Aug 1, 2023 · 1 comment
Open

Comments

@Smeetp1234
Copy link

In nltk.stem.lancaster.LancasterStemmer class, there is an incorrect documentation in given example:

from nltk.stem.lancaster import LancasterStemmer
st = LancasterStemmer()
st.stem('cement') # ditto

For above, given output is 'cem', but the comment # ditto signifies that output should be word 'cement' without any change.
I will request to correct the above mentioned problem, as it is showing incorrect comment as compared to given output.

@Higgs32584
Copy link

I do not believe this is an issue with documentation, as the documentation matches the output of ran code. It appears to be an issue with the lancasterStemmer, if there is one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants