Skip to main content

Pipeline G2P complet du français — Tokeniseur + Formules + Phonémiseur + Groupes de lecture

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lectura_g2p-4.1.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lectura_g2p-4.1.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file lectura_g2p-4.1.3.tar.gz.

File metadata

  • Download URL: lectura_g2p-4.1.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for lectura_g2p-4.1.3.tar.gz
Algorithm Hash digest
SHA256 c3128102a10bb3cc53cdd5c57e29ec1eb55d739a28c52a94ca3140fb5eee5b19
MD5 8c79b300b19694b9a5470b0f7d12e77d
BLAKE2b-256 b59a8a1f76993fe9604e3b8c9355d2f62576285a643d3eba4ba614aabad3dcce

See more details on using hashes here.

File details

Details for the file lectura_g2p-4.1.3-py3-none-any.whl.

File metadata

  • Download URL: lectura_g2p-4.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for lectura_g2p-4.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a25a03aa307655e18d36b6c2c54bbeda67eb7a82bf5a31695caed1bb4824beaa
MD5 8aaf3b7fb5601bf3dcbd1d79d8b05233
BLAKE2b-256 3b5ccd379120990a7bf0f83c0081356d4111b5a12da8f670be2e43baf2123357

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page