lectura-p2g
Pipeline P2G complet du francais : Graphemiseur + Formules + Noms propres (IPA -> orthographe).
Couche 2 du pipeline P2G, en miroir de lectura-g2p pour le G2P.
Installation
pip install lectura-p2g # pipeline complet
pip install lectura-p2g[aligneur] # + alignement grapheme-phoneme
Usage
from lectura_p2g import analyser, creer_engine
engine = creer_engine()
result = analyser(["le", "sha", "eh", "bon"], engine=engine)
print(result["ortho"])
Avec alignement
from lectura_p2g import analyser, creer_engine
from lectura_aligneur.lectura_aligneur import LecturaSyllabeur
engine = creer_engine()
syl = LecturaSyllabeur()
result = analyser(["bɔ̃ʒuʁ"], engine=engine, aligner=syl)
print(result["alignments"][0].syllabes)
Architecture
- Couche 1 :
lectura-graphemiseur— modele P2G core (lex_select + coherence morpho + accents) - Couche 2 :
lectura-p2g— pipeline complet (graphemiseur + formules + noms propres)
Licence
AGPL-3.0-or-later — voir LICENCE.txt.
Licence commerciale et modeles locaux disponibles — contacter admin@lectura.world.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lectura_p2g-4.6.3.tar.gz
(4.1 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lectura_p2g-4.6.3.tar.gz.
File metadata
- Download URL: lectura_p2g-4.6.3.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca3fec7115a98e8076a0820bfac75665897bd2a7cf127294c4ad60025533f394
|
|
| MD5 |
6bb2b7c3302e2d78dc396a9a77c4d1d7
|
|
| BLAKE2b-256 |
4ea94fe7e3925adca0b5ff754dc2125ae654f6013b6b0bba5c967b787b7481d9
|
File details
Details for the file lectura_p2g-4.6.3-py3-none-any.whl.
File metadata
- Download URL: lectura_p2g-4.6.3-py3-none-any.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef305ebea326c07f95cf24fbc2478fc48224e8c32e01069be392afd4066c21cc
|
|
| MD5 |
25c5d66baf1a3392c8b4e2379e52fb53
|
|
| BLAKE2b-256 |
ca8bf134891160eb65c3d8e79ffb5bef7c8404e6d0414e419b4118b745bc84e4
|