X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f44af49df9b86c9a35db000f7a42e65a6c4307ba..ba8ed7967dc8450eb797e627809edafd3859acf7:/nominatim/tokenizer/legacy_icu_tokenizer.py diff --git a/nominatim/tokenizer/legacy_icu_tokenizer.py b/nominatim/tokenizer/legacy_icu_tokenizer.py index 09d4059e..064b395c 100644 --- a/nominatim/tokenizer/legacy_icu_tokenizer.py +++ b/nominatim/tokenizer/legacy_icu_tokenizer.py @@ -133,15 +133,18 @@ class LegacyICUTokenizer: def _install_php(self, config): """ Install the php script for the tokenizer. """ + abbr_inverse = list(zip(*self.abbreviations)) php_file = self.data_dir / "tokenizer.php" php_file.write_text(dedent("""\