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

fix snowball stemmer bug in handling word y's #333

Merged
merged 1 commit into from Jan 3, 2013
Merged

fix snowball stemmer bug in handling word y's #333

merged 1 commit into from Jan 3, 2013

Conversation

cllu
Copy link
Contributor

@cllu cllu commented Jan 2, 2013

STEP 1c in line 828 checks len(word) > 2 as last condition. However, this will cause string index out of range error when stem the word y's since word will be y when we come to line 828. Move the condition len(word)>2 to beginning will solve this issue.

STEP 1c in line 828 checks `len(word) > 2` as last condition.
However, this will cause `string index out of range` Error
when stem the word `y's` since `word` will be `y` when we
come to line 828. Move the condition `len(word)>2` to beginning
will solve this issue.
kmike added a commit that referenced this pull request Jan 3, 2013
fix snowball stemmer bug in handling word `y's`
@kmike kmike merged commit 9bc5324 into nltk:master Jan 3, 2013
@kmike
Copy link
Member

kmike commented Jan 3, 2013

Thanks!

kmike added a commit that referenced this pull request Jan 3, 2013
alexrudnick added a commit that referenced this pull request Jan 12, 2013
Bugfix for snowball stemmer typo introduced in #333
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

Successfully merging this pull request may close these issues.

None yet

2 participants