Registry / serialization / gruut-lang-de

gruut-lang-de

JSON →
library2.0.1pypypi✓ verified 82d ago

Provides German (de) language data files for the gruut tokenizer and phonemizer library, including lexicons, grapheme-to-phoneme models, and text normalization rules. Version 2.0.1 is the latest standalone release; the overall gruut ecosystem is actively maintained with a recent v2.4.0 release. Install this package alongside the core `gruut` package to process German text.

pip install gruut-lang-de
INSTALL
IMPORT
SIG · GRUUT-LANG-DE
G
gruut-lang-de
serializationpythonv2.0.1
Install
6.0s avg
Import
Disk
88MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.1 · 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 · 90.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 6.0s · import 0.000s · 91MB
88MB installed
● package 88MB
Code
Verified usage

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

get_lang_dir
from gruut_lang_de import get_lang_dir
from gruut_lang_de import load_lexicon_de
Path
from gruut_lang_de import Path
files
from gruut_lang_de import files

Tokenize and phonemize a German sentence. Ensure both 'gruut' and 'gruut-lang-de' are installed.

import gruut from gruut_lang_de import load_lexicon_de sentences = gruut.sentences('Hallo Welt', lang='de', lexicon_loader=load_lexicon_de) for sentence in sentences: for word in sentence: print(word.text, word.phonemes)
Debug
Known issues
breakingIn gruut v2.0, the API and CLI changed significantly. Language data is no longer bundled in core; you must install separate language packages (e.g., gruut-lang-en, gruut-lang-de). The primary entry point is now `gruut.sentences`.
fix
Upgrade gruut to >=2.0 and install the appropriate gruut-lang-* packages. Replace calls like `gruut.tokenize()` with `gruut.sentences()`.
affects: gruut <2.0
deprecatedInline pronunciations and custom formats like `<number>_<format>` were removed in gruut v2.0. Use SSML tags instead.
fix
Replace inline pronunciations with SSML `<phoneme>` or `<say-as>` elements.
affects: gruut >=2.0
gotchaGerman language data is not automatically registered when installing gruut-lang-de. You must explicitly pass the lexicon loader from gruut_lang_de to gruut.sentences.
fix
Use `from gruut_lang_de import load_lexicon_de` and pass `lexicon_loader=load_lexicon_de` when calling `gruut.sentences()`.
affects: all
Upgrade
Version history
2.0.1latest on PyPI · released Jul 3, 2024
Audit
Dependencies
gruutrequiredCore library required for tokenization and phonemization
Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
gruut-lang-de — pip install gruut-lang-de · libregistry