fnielsen / ordia

Wikidata lexemes presentations
https://ordia.toolforge.org
Apache License 2.0
24 stars 13 forks source link

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

Open dpriskorn opened 4 months ago

dpriskorn commented 4 months ago

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 commented 4 months ago

Here is the line that handle the query input: https://github.com/fnielsen/ordia/blob/a5286625499ab464de08973128dd6cc66c6e1b05/ordia/app/views.py#L420

fnielsen commented 4 months ago

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

fnielsen commented 4 months ago

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