Skip to main content

Normalisateur et tokeniseur complet pour le français — détection de formules (nombres, sigles, dates, téléphones, etc.)

Project description

Lectura Tokeniseur

Normalisateur et tokeniseur complet pour le français

Module autonome, zéro dépendance externe. Détecte et classifie les formules (nombres, sigles, dates, téléphones, numéros, ordinaux, fractions, notations scientifiques, expressions mathématiques).

Installation

pip install lectura-tokeniseur

Utilisation

from lectura_tokeniseur import tokenise

resultat = tokenise("Le 25 décembre 2024, il faisait -3°C à Paris.")

for phrase in resultat.phrases:
    for token in phrase:
        print(f"{token.texte:20s}  {token.type.name}")
Le                    MOT
25 décembre 2024      FORMULE
,                     PONCTUATION
il                    MOT
faisait               MOT
-3°C                  FORMULE
à                     MOT
Paris                 MOT
.                     PONCTUATION

Fonctionnalités

  • Normalisation : typographie, espaces, Unicode
  • Tokenisation : mots, ponctuation, séparateurs
  • Détection de formules : nombres (entiers, décimaux, négatifs), dates, heures, téléphones, sigles, ordinaux, fractions, pourcentages, monnaies, unités de mesure, expressions mathématiques, chiffres romains
  • API simple : tokenise(texte) renvoie un objet structuré

Licence

Ce module est distribue sous licence AGPL-3.0 (non commerciale) — voir LICENCE.txt.

Pour un usage commercial, 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_tokeniseur-2.3.6.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

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

lectura_tokeniseur-2.3.6-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file lectura_tokeniseur-2.3.6.tar.gz.

File metadata

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

File hashes

Hashes for lectura_tokeniseur-2.3.6.tar.gz
Algorithm Hash digest
SHA256 6518c59042e8d662f50e186dbd99f5563941bc320fa6386c8a5791e0b1f6704e
MD5 6f7057254fdeb049a7bbb639e88f771c
BLAKE2b-256 b78ed6a999049dff615add09709c88c8b3ea2ab163ed44d09de1d4c6696f813d

See more details on using hashes here.

File details

Details for the file lectura_tokeniseur-2.3.6-py3-none-any.whl.

File metadata

File hashes

Hashes for lectura_tokeniseur-2.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7186642ad41e5899918c47c33b5f151863f430c9a55ac81e3f7b3c350308e252
MD5 dc5c08e84651a2d6caa3a006c3c204c9
BLAKE2b-256 fa761b1c6423a27d13985c9f57ea51560c792371dd9d794cb3bcd5008ae1d1fc

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