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.5.tar.gz (49.1 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.5-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lectura_tokeniseur-2.3.5.tar.gz
  • Upload date:
  • Size: 49.1 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.5.tar.gz
Algorithm Hash digest
SHA256 a6f5332eb61464b453061ee63afa43ca21b09b2cff6d14a87fcd51cb09d6960b
MD5 39fdfd0ee994285d08958927d9006d0a
BLAKE2b-256 a42c8beeea7b2a76fa51cec1351e48533f6010927e5dbb37bfb411f3f38ed0d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lectura_tokeniseur-2.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5900e384cc44f862a890e47d2c25b49eb901a0fab89cb12e59aff6b246ff6b56
MD5 ec000efbfcec44be0cf8aac9280aed41
BLAKE2b-256 7e6233b32d13fd6cc6d7340bebdd5d7564e61e48968b4007d0827b69fb4eec1f

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