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
The ISRI ARabic Stemmer (src.whoosh.lang.isry.py) does not work on Python >= 3.6.
src.whoosh.lang.isry.py
Exception: re.error: bad escape \u at position 0. Reason: changed behavior of re.sub.
re.error: bad escape \u at position 0
Changed in version 3.6: Unknown escapes in pattern consisting of '\' and an ASCII letter now are errors.
(quoted from https://docs.python.org/3/library/re.html)
Code snippet to reproduce:
from whoosh.analysis import LanguageAnalyzer analyzer = LanguageAnalyzer(lang='ar') [(token.text, token.stopped) for token in analyzer("This is a test")]
Codesamples with bad escape sequences:
whoosh/src/whoosh/lang/isri.py
Line 87 in 26153e2
Line 88 in 26153e2
Line 89 in 26153e2
Line 190 in 26153e2
Line 194 in 26153e2
The text was updated successfully, but these errors were encountered:
Thanks Benjamin, good catch. I have submitted a PR to fix this.
Sorry, something went wrong.
Merge pull request #557 from stevennic/#550
5421f1a
Fix \u in raw string RE's
Should be fixed by #557
No branches or pull requests
The ISRI ARabic Stemmer (
src.whoosh.lang.isry.py
) does not work on Python >= 3.6.Exception:
re.error: bad escape \u at position 0
.Reason: changed behavior of re.sub.
(quoted from https://docs.python.org/3/library/re.html)
Code snippet to reproduce:
Codesamples with bad escape sequences:
whoosh/src/whoosh/lang/isri.py
Line 87 in 26153e2
whoosh/src/whoosh/lang/isri.py
Line 88 in 26153e2
whoosh/src/whoosh/lang/isri.py
Line 89 in 26153e2
whoosh/src/whoosh/lang/isri.py
Line 190 in 26153e2
whoosh/src/whoosh/lang/isri.py
Line 194 in 26153e2
The text was updated successfully, but these errors were encountered: