We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error:
File "D:\...\summa\preprocessing\snowball.py", line 3510, in stem if word[-2:] == "gu" and rv[-1] == "u": IndexError: string index out of range
The issue is in the SpanishStemmer, in this section:
# STEP 3: Residual suffix for suffix in self.__step3_suffixes: if rv.endswith(suffix): if suffix in ("e", "\xE9"): word = word[:-len(suffix)] rv = rv[:-len(suffix)] if word[-2:] == "gu" and rv[-1] == "u": word = word[:-1] else: word = word[:-len(suffix)] break
If the 'rv' string has length == 1 , the line:
rv = rv[:-len(suffix)]
at runtime is trying to do
rv = rv[:-1]
which is a statement that gives an empty list as a result and makes this check fail:
if word[-2:] == "gu" and rv[-1] == "u":
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error:
File "D:\...\summa\preprocessing\snowball.py", line 3510, in stem if word[-2:] == "gu" and rv[-1] == "u": IndexError: string index out of range
The issue is in the SpanishStemmer, in this section:
If the 'rv' string has length == 1 , the line:
at runtime is trying to do
which is a statement that gives an empty list as a result and makes this check fail:
The text was updated successfully, but these errors were encountered: