X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d3372e69eca75aad7a7decc17b5fd7a5ffc1b1f8..b01a836d1ecce5c7cc1aceedf19535eeda9058af:/docs/develop/ICU-Tokenizer-Modules.md diff --git a/docs/develop/ICU-Tokenizer-Modules.md b/docs/develop/ICU-Tokenizer-Modules.md index f1853006..d189422a 100644 --- a/docs/develop/ICU-Tokenizer-Modules.md +++ b/docs/develop/ICU-Tokenizer-Modules.md @@ -52,9 +52,9 @@ the function. ### Sanitizer configuration -::: nominatim.tokenizer.sanitizers.config.SanitizerConfig +::: nominatim_db.tokenizer.sanitizers.config.SanitizerConfig options: - heading_level: 3 + heading_level: 6 ### The main filter function of the sanitizer @@ -73,16 +73,16 @@ adding extra attributes) or completely replace the list with a different one. #### PlaceInfo - information about the place -::: nominatim.data.place_info.PlaceInfo +::: nominatim_db.data.place_info.PlaceInfo options: - heading_level: 3 + heading_level: 6 #### PlaceName - extended naming information -::: nominatim.data.place_name.PlaceName +::: nominatim_db.data.place_name.PlaceName options: - heading_level: 3 + heading_level: 6 ### Example: Filter for US street prefixes @@ -129,7 +129,7 @@ sanitizers: !!! warning This example is just a simplified show case on how to create a sanitizer. It is not really read for real-world use: while the sanitizer would - correcly transform `West 5th Street` into `5th Street`. it would also + correctly transform `West 5th Street` into `5th Street`. it would also shorten a simple `North Street` to `Street`. For more sanitizer examples, have a look at the sanitizers provided by Nominatim. @@ -139,14 +139,14 @@ They can be found in the directory ## Custom token analysis module -::: nominatim.tokenizer.token_analysis.base.AnalysisModule +::: nominatim_db.tokenizer.token_analysis.base.AnalysisModule options: - heading_level: 3 + heading_level: 6 -::: nominatim.tokenizer.token_analysis.base.Analyzer +::: nominatim_db.tokenizer.token_analysis.base.Analyzer options: - heading_level: 3 + heading_level: 6 ### Example: Creating acronym variants for long names