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

Bug: full stop in the end is not stripped #194

Open
dpriskorn opened this issue May 31, 2024 · 3 comments · May be fixed by #195
Open

Bug: full stop in the end is not stripped #194

dpriskorn opened this issue May 31, 2024 · 3 comments · May be fixed by #195

Comments

@dpriskorn
Copy link

When searching for:
"Vägen till helvetet är kantad med goda föresatser."
I get no result, but
"Vägen till helvetet är kantad med goda föresatser" -> https://ordia.toolforge.org/L1327610

We should strip punctuation in the end of the input before doing the lookup

@dpriskorn
Copy link
Author

Here is the line that handle the query input:

query = request.args.get('q', '').strip()

dpriskorn added a commit to dpriskorn/ordia that referenced this issue May 31, 2024
@fnielsen
Copy link
Owner

There are some lexemes with a fullstop, e.g., "e.g." and "dvs." https://ordia.toolforge.org/L588622

@fnielsen
Copy link
Owner

There is even comma https://ordia.toolforge.org/L408858

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 a pull request may close this issue.

2 participants