3 The query preprocessing step allows to transform the incoming query before
4 it is processed by the tokenizer. This includes removing unrelated parts,
5 rephrasing and phrase tagging.
9 Query preprocessing is defined in the 'query_preprocessing.yaml' configuration
10 file. The file must contain a list of steps. Each step has a mandatory
11 parameter `step` which defines the type of preprocessor. Additional step
12 configuration may then be set with additional parameters.
14 The steps are executed in the order that they are defined in the configuration
15 file. Order matters here: each preprocessor works with the output of the previous
18 ## Pre-defined preprocessors
20 The following is a list of preprocessors that are shipped with Nominatim.
21 To learn how to define custom preprocessors, see the section on
22 [query processing modules](../develop/Query-Processing-Modules.md).
24 ### split-japanese-phrases
26 ::: nominatim_api.query_preprocessing.split_japanese_phrases
30 docstring_section_style: spacy
34 ::: nominatim_api.query_preprocessing.regex_replace
38 docstring_section_style: spacy