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

stem accuracy #3239

Open
Moustafa1Rizk1 opened this issue Mar 14, 2024 · 1 comment
Open

stem accuracy #3239

Moustafa1Rizk1 opened this issue Mar 14, 2024 · 1 comment

Comments

@Moustafa1Rizk1
Copy link

Dears,
i am trying to use stemmers for some of the words, however, the stemming is not accurate.

example

from nltk.stem import PorterStemmer
from nltk.stem.lancaster import LancasterStemmer

ps = PorterStemmer()
st = LancasterStemmer()

def prepareWord(word):
print(word, " : ", st.stem(word))
return st.stem(word)

input : shelves

result: shelv

expected shelf

i need to know what is the alternative or this is a defect

@Moustafa1Rizk1
Copy link
Author

Dears.

 is there any update, alternative or workaround?

My Best Regards

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

1 participant