Skip to main content

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)

Source distribution for lectura-p2g 4.6.3
File Size Uploaded
lectura_p2g-4.6.3.tar.gz 4.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for lectura-p2g 4.6.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

4.6.3 This release

2 release files

4.6.2

2 release files

4.6.1

2 release files

4.6.0

2 release files

4.5.3

2 release files

4.5.2

2 release files

4.5.1

2 release files

4.5.0

2 release files

4.4.0

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.1.0

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.0.1

2 release files

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