Skip to main content

Meta-package Lectura — suite complete de traitement linguistique et vocal du francais

Project description

Lectura — French NLP & Speech Toolkit

Suite complete de traitement linguistique et vocal du francais. Tokenisation, phonetique, syllabation, correction orthographique, synthese vocale et plus.

A comprehensive French natural language processing and speech toolkit. Tokenization, phonetics, syllabification, spell-checking, text-to-speech, and more.

pip install lectura            # meta-package (tout installer)
pip install lectura-phonemiseur  # ou un seul module

Modules atomiques (couche 1)

Module Description Version pip install
Tokeniseur Normalisation et tokenisation du francais, detection de formules 2.3.3 pip install lectura-tokeniseur
Formules Lecture algorithmique des formules (nombres, dates, heures...) 3.7.6 pip install lectura-formules
Phonemiseur G2P neural : grapheme-to-phoneme + POS + Morpho + Liaison 4.1.6 pip install lectura-phonemiseur
Graphemiseur P2G neural : phoneme-to-grapheme + POS + Morpho (IPA → orthographe) 4.3.5 pip install lectura-graphemiseur
Aligneur-Syllabeur Alignement grapheme-phoneme et syllabation / syllabification 4.0.1 pip install lectura-aligneur
Correcteur Correcteur orthographique et grammatical du francais 1.1.1 pip install lectura-correcteur
Decodeur Decodeur phonetique CTC : audio → phones IPA (CNN-BiGRU-CTC) 3.0.1 pip install lectura-decodeur
Lexique Acces au lexique Lectura (359k lemmes, 1.5M formes) 1.5.0 pip install lectura-lexique

Pipelines (couche 2)

Module Description Version pip install
G2P-Pipeline Pipeline complet texte → phonetique (tokeniseur + formules + phonemiseur) 4.1.1 pip install lectura-g2p
P2G-Pipeline Pipeline complet phonetique → texte 4.6.2 pip install lectura-p2g
STT Pipeline audio → texte (CTC + P2G) 3.2.2 pip install lectura-stt

Synthese vocale / Text-to-Speech

Module Description Version pip install
Monospeaker TTS neural monospeaker francais (FastPitch + HiFi-GAN) 4.0.0 pip install lectura-monospeaker
MultiSpeaker TTS neural multispeaker francais 4.0.0 pip install lectura-multispeaker
Diphone TTS par concatenation de diphones WORLD (prosodie reglee) 2.0.1 pip install lectura-diphone

Conversion vocale / Voice Conversion

Module Description Version pip install
VC-ZeroShot Conversion vocale zero-shot 1.2.0 pip install lectura-vc-zeroshot
VC-Locuteurs Conversion vocale par locuteurs (RVC) 1.0.0 pip install lectura-vc-locuteurs

Caracteristiques / Key Features

  • Zero dependance sur les modules de base (Tokeniseur, Formules, Aligneur) — Zero dependencies for core modules
  • 4 backends d'inference pour G2P/P2G : API, ONNX Runtime, NumPy, Pure Python — 4 inference backends
  • Type hints complets (Python 3.10+, PEP-561) — Full type hints
  • Modeles compacts : G2P = 1.8 Mo, P2G = 2.6 Mo (ONNX INT8) — Compact models
  • Syllabation explicite par alignement grapheme-phoneme — Explicit syllabification via grapheme-phoneme alignment

Installation rapide / Quick Start

# Tous les modules d'un coup / Install everything
pip install lectura

# Avec backends ONNX pour G2P/P2G (recommande / recommended)
pip install lectura[onnx]

# Un seul module / Single module
pip install lectura-tokeniseur

# Phonemiseur avec backend ONNX
pip install lectura-phonemiseur[onnx]

Exemple / Example

from lectura_tokeniseur import tokenise
from lectura_formules import lire_formule

# Tokeniser du texte francais
tokens = tokenise("Le 1er janvier 2025, j'ai lu 42 pages.")

# Lire une formule (nombre → texte)
result = lire_formule("NOMBRE", "42")
print(result.display_fr)  # "quarante-deux"

Licence

Code source sous licence AGPL-3.0. Modeles pre-entraines (.onnx) : voir MODEL_LICENCE.md.

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

Auteur

Max Carriere — 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-4.0.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

lectura-4.0.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file lectura-4.0.1.tar.gz.

File metadata

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

File hashes

Hashes for lectura-4.0.1.tar.gz
Algorithm Hash digest
SHA256 ce8da5d62f78c83d66b4cc046ed1eaabc56bde244a747c14d0c73487bed3586e
MD5 af8cf614bf7288d5a61effc7c54eef6a
BLAKE2b-256 99201ffd3e956c4ef085f7aec1ff22dd744adf164d2f161ff53cbb81e4afed02

See more details on using hashes here.

File details

Details for the file lectura-4.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for lectura-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e8069d4ddc2e1d1ea0d1700914731aeace28aa3845d66465e6144e02563e0d8
MD5 ee65c020510d11ec4e421bb03d00af1a
BLAKE2b-256 d9a2b4da936e76ce1df9ac5927e792524cea371ce3188b00f2f87b7b071e0341

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