Skip to main content

lectura-g2p

Complete French grapheme-to-phoneme pipeline — text to IPA phonetics in one call. Combines tokenizer, formula reader, and neural phonemizer.

Pipeline G2P complet du francais — texte vers phonetique IPA en un appel. Combine tokeniseur, lecteur de formules et phonemiseur neural.

Installation

pip install lectura-g2p              # pipeline complet
pip install lectura-g2p[aligneur]    # + alignement grapheme-phoneme et syllabation

Usage

from lectura_g2p import analyser, creer_engine

engine = creer_engine()

# Texte → phonetique IPA
result = analyser("Bonjour, il est 14h30.", engine=engine)
print(result["ipa"])

Avec alignement et syllabation

from lectura_g2p import analyser, creer_engine
from lectura_aligneur.lectura_aligneur import LecturaSyllabeur

engine = creer_engine()
syl = LecturaSyllabeur()

result = analyser("Bonjour !", engine=engine, aligner=syl)
for a in result["alignments"]:
    print(a.syllabes)

Architecture

  • Couche 1 : lectura-phonemiseur — modele G2P neural BiLSTM (1.8 Mo ONNX INT8, 98.5% word accuracy)
  • Couche 2 : lectura-g2p — pipeline complet (tokeniseur + formules + phonemiseur)
  • 4 backends : API, ONNX Runtime, NumPy, Pure Python (zero dependance)

Licence

AGPL-3.0-or-later — voir LICENCE.txt.

Licence commerciale et modeles locaux disponibles — contacter admin@lectura.world.

Metadata

Release files for lectura-g2p 4.1.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-g2p 4.1.3
File Size Uploaded
lectura_g2p-4.1.3.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lectura-g2p 4.1.3
File Interpreter ABI Platform
lectura_g2p-4.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / lectura_g2p-4.1.3.tar.gz

Download URL lectura_g2p-4.1.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c3128102a10bb3cc53cdd5c57e29ec1eb55d739a28c52a94ca3140fb5eee5b19
BLAKE2b-256 checksum
How to use checksums
b59a8a1f76993fe9604e3b8c9355d2f62576285a643d3eba4ba614aabad3dcce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / lectura_g2p-4.1.3-py3-none-any.whl

Download URL lectura_g2p-4.1.3-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a25a03aa307655e18d36b6c2c54bbeda67eb7a82bf5a31695caed1bb4824beaa
BLAKE2b-256 checksum
How to use checksums
3b5ccd379120990a7bf0f83c0081356d4111b5a12da8f670be2e43baf2123357
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.1.3 This release

2 release files

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.3.0

1 release file

3.2.5

1 release file

3.2.4

1 release file

3.2.3

1 release file

3.2.2

1 release file

3.2.1

1 release file

3.2.0

1 release file

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

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