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.
Metadata
Release files for lectura-p2g 4.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lectura_p2g-4.6.3.tar.gz | 4.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lectura_p2g-4.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 MB
Release files / lectura_p2g-4.6.3.tar.gz
| Download URL | lectura_p2g-4.6.3.tar.gz |
|---|---|
| Size | 4.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca3fec7115a98e8076a0820bfac75665897bd2a7cf127294c4ad60025533f394
|
|
BLAKE2b-256 checksum How to use checksums |
4ea94fe7e3925adca0b5ff754dc2125ae654f6013b6b0bba5c967b787b7481d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / lectura_p2g-4.6.3-py3-none-any.whl
| Download URL | lectura_p2g-4.6.3-py3-none-any.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef305ebea326c07f95cf24fbc2478fc48224e8c32e01069be392afd4066c21cc
|
|
BLAKE2b-256 checksum How to use checksums |
ca8bf134891160eb65c3d8e79ffb5bef7c8404e6d0414e419b4118b745bc84e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|