reduce penalty for artificial housenumbers

This commit is contained in:
Sarah Hoffmann
2025-09-12 17:44:54 +02:00
parent 193d6c4173
commit 72592da0cc

View File

@@ -288,7 +288,7 @@ class ICUQueryAnalyzer(AbstractQueryAnalyzer):
if need_hnr and is_full_token \
and len(node.term_normalized) <= 4 and node.term_normalized.isdigit():
query.add_token(qmod.TokenRange(i-1, i), qmod.TOKEN_HOUSENUMBER,
ICUToken(penalty=0.5, token=0,
ICUToken(penalty=0.2, token=0,
count=1, addr_count=1,
lookup_word=node.term_lookup,
word_token=node.term_lookup, info=None))