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.4.tar.gz (48.5 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.4-py3-none-any.whl (41.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lectura_tokeniseur-2.3.4.tar.gz
  • Upload date:
  • Size: 48.5 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.4.tar.gz
Algorithm Hash digest
SHA256 1027f154c9a47345c772e25da1df715944c80badb13ecd54438384dd2d39215f
MD5 abd9abd3b00fc5ef3642b36efc01b0f9
BLAKE2b-256 f262398b0e1af474d67f307cfe2dda5bbe938c21be6b9857b666edfaac45eba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lectura_tokeniseur-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d76e5b0150dcafd3c4569f88ff3c2dfae5784f5eccdab909bd40f502c0b46f80
MD5 a01cb9f398494a4539299706014923e3
BLAKE2b-256 466bfde98a824b733e9e5fdff5339d564afbb2c07b83c81cc59f6034676b31f6

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