strip normalisation results of normal and special spaces

This commit is contained in:
Sarah Hoffmann
2025-02-19 10:26:06 +01:00
parent e29823e28f
commit 55c3176957
2 changed files with 2 additions and 2 deletions

View File

@@ -27,5 +27,5 @@ def create(config: QueryConfig) -> QueryProcessingFunc:
return lambda phrases: list(
filter(lambda p: p.text,
(Phrase(p.ptype, cast(str, normalizer.transliterate(p.text)))
(Phrase(p.ptype, cast(str, normalizer.transliterate(p.text)).strip('-: '))
for p in phrases)))