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.2.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.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lectura_g2p-4.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 277ed87b67db8bed8c8b7097d4601f04ec8b49b08b110a2d80cd7687edbbaa57
MD5 dec023447ee6f84f0218a8fc7d2ff3d8
BLAKE2b-256 21baa9d564e6b1540a210570ab6ef458d26d20c8e962afab233bbb7069eeedd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lectura_g2p-4.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74e628ba4d09a909dea2c77490461ed07da95fb2012d57cac76767de41210d0f
MD5 bb8d8caf69420aa1461511c53685e05d
BLAKE2b-256 b23d0ba4dc5ee24d21d0f2c37e9b6f7db1f8cd2e44fb0789052ab9d6b091096a

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