Registry / serialization / gruut-lang-fr

gruut-lang-fr

JSON →
library2.0.2pypypi✓ verified 82d ago

French language data files for the gruut tokenizer/phonemizer library. Provides grapheme-to-phoneme (g2p) models, lexicons, and language-specific rules for French text normalization and pronunciation. Current version: 2.0.2, released as part of gruut v2.0.0 refactoring. Gruut core releases frequently; language packages versioned independently.

pip install gruut-lang-fr
INSTALL
IMPORT
SIG · GRUUT-LANG-FR
G
gruut-lang-fr
serializationpythonv2.0.2
Install
4.3s avg
Import
Disk
44MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 46.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.3s · import 0.000s · 47MB
44MB installed
● package 44MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Path
from gruut_lang_fr import Path
import gruut
get_lang_dir
from gruut_lang_fr import get_lang_dir
import gruut
files
from gruut_lang_fr import files
import gruut

Simple example using gruut with French language data.

import gruut # Tokenize and phonemize French text sentences = gruut.sentences('Bonjour le monde', lang='fr') for sentence in sentences: for word in sentence: if word.phonemes: print(f"{word.text} -> {''.join(word.phonemes)}")
Debug
Known issues
breakingGruut v2.0.0 changed the API from gruut.tokenize to gruut.sentences. Old code using gruut.tokenize will break.
fix
Use gruut.sentences() instead of gruut.tokenize(). See quickstart example.
affects: <2.0.0
breakingThe language data packages (gruut-lang-*) are separate from the core gruut package. Simply installing gruut does not include language data.
fix
Install the specific language package: pip install gruut-lang-fr
affects: >=2.0.0
gotchaLanguage data is automatically loaded when using lang='fr'. Manually importing gruut_lang_fr is not supported and may cause issues.
fix
Do not import gruut_lang_fr. Simply set lang='fr' in gruut functions.
affects: >=2.0.0
Upgrade
Version history
2.0.2latest on PyPI · released May 11, 2022
Audit
Dependencies
gruutrequiredCore library required for tokenization and phonemization
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
gruut-lang-fr — pip install gruut-lang-fr · libregistry