forked from hans/Nominatim
make compund decomposition pure import feature
Compound decomposition now creates a full name variant on import just like abbreviations. This simplifies query time normalization and opens a path for changing abbreviation and compund decomposition lists for an existing database.
This commit is contained in:
@@ -151,8 +151,9 @@ def test_init_word_table(tokenizer_factory, test_config, place_row, word_table):
|
||||
tok = tokenizer_factory()
|
||||
tok.init_new_db(test_config)
|
||||
|
||||
assert word_table.get_partial_words() == {('te', 1), ('st', 1), ('52', 1),
|
||||
assert word_table.get_partial_words() == {('test', 1), ('52', 1),
|
||||
('no', 1), ('area', 2),
|
||||
('holzstrasse', 1), ('holzstr', 1),
|
||||
('holz', 1), ('strasse', 1),
|
||||
('str', 1)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user