Skip to main content

addok-fr

Addok plugin for improved French geocoding with phonetic normalization and French-specific synonym handling.

Features

  • Phonetic normalization: French-optimized phonetic processor that handles typos and spelling variations in address searches
  • French synonyms: Pre-configured synonym database for common French address terms (rue, avenue, boulevard, etc.)

Installation

pip install addok-fr

Configuration

Enable the phonemicize processor

Add phonemicize into PROCESSORS_PYPATHS:

PROCESSORS_PYPATHS = [
    …,
    'addok_fr.phonemicize'
]

Cache configuration (optional)

The phonemicize processor uses an LRU cache to improve performance. By default, the cache can hold up to 500,000 entries (~86 MB of memory), which is suitable for approximately 500,000 unique words.

You can adjust the cache size in your Addok configuration file:

PHONEMICIZE_CACHE_SIZE = 500_000  # Default value

Recommendations:

  • 500K entries (~86 MB): Default, suitable for most French address datasets
  • 1M entries (~172 MB): For larger datasets with more unique words
  • 250K entries (~43 MB): For memory-constrained environments

The cache uses an LRU (Least Recently Used) eviction strategy, meaning the most frequently used words will remain cached even if the maximum size is reached

Release files for addok-fr 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for addok-fr 1.1.0
File Size Uploaded
addok_fr-1.1.0.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for addok-fr 1.1.0
File Interpreter ABI Platform
addok_fr-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / addok_fr-1.1.0.tar.gz

Download URL addok_fr-1.1.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
030aacbbaa777e9876f1cf06f1033b685e179164adf6e6fcc40d6c5c54286178
BLAKE2b-256 checksum
How to use checksums
cd80565d23fbb6c113b72a4343d38d5435c6bd3def9efd9dd6166201d66e9669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / addok_fr-1.1.0-py3-none-any.whl

Download URL addok_fr-1.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c71e5cece4001c5e8c9247cb4d9cb72109a1d51be6efb9ba32e33188bfe62d53
BLAKE2b-256 checksum
How to use checksums
85c94c6e1d01a45665ee6132d34b56473dcac86153be5329ddd201786dabdf6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page