Skip to main content

A package to punctuate text, currently supporting French text, more languages comming soon.

Project description

Text Punctuator Based on Transformers model T5.

T5 model fine-tuned for punctuation restoration. Model currently supports only French Language. More language supports will be added later using mT5.

Train Datasets : Model trained using 2 french datasets (around 500k records):

more info will be added later.


🚀 Usage

Below is a quick way to get up and running with the model.

  1. First, install the package.
pip install TextPunctuator
  1. Sample python code.
from Punctuator import TextPunctuator

punctuator = TextPunctuator(use_gpu=False)

text = "Sur la base de ces échanges Blake Lemoine a donc jugé que le système avait atteint un niveau de conscience lui permettant d’être sensible Ce dernier a ensuite envoyé par email un rapport sur la sensibilité supposée de LaMDA à deux cents employés de Google Très vite les dirigeants de l’entreprise ont rejeté les allégations"

text_punctuated = punctuator.punctuate(text, lang='fr')

text_punctuated
# Outputs the following:
# Sur la base de ces échanges, Blake Lemoine a donc jugé que le système avait atteint un niveau de conscience lui permettant d’être sensible. Ce dernier a ensuite envoyé par email un rapport sur la sensibilité supposée de LaMDA à deux cents employés de Google. Très vite, les dirigeants de l’entreprise ont rejeté les allégations.

☕ Contact

Contact Zakarya ROUZKI or at Linkedin.


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

TextPunctuator-1.0.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

TextPunctuator-1.0.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file TextPunctuator-1.0.5.tar.gz.

File metadata

  • Download URL: TextPunctuator-1.0.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.3

File hashes

Hashes for TextPunctuator-1.0.5.tar.gz
Algorithm Hash digest
SHA256 3452cfd15455104dedec200a512f8de62388c5f9d5ed1696b20e1fcc31ec78bb
MD5 cef2170916dfefa74480a212e43e37e1
BLAKE2b-256 20b293e87abcd31c1a9e74f6f8b7b5c88e1b9132ad498d1d43d8cc81247be8a5

See more details on using hashes here.

File details

Details for the file TextPunctuator-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for TextPunctuator-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7db32d6939d6616901aaf7f09217864cbdd259b8540f42955f834a2485e84687
MD5 baa409dc46a151b01d68f013163be939
BLAKE2b-256 9e6ae3adaeb68ed87007fc1daa6f16573c24aea21fb202e90acc6bf1786b3a6e

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