Skip to main content

A library to restore capitalization for text

Project description

TrueCase

A language independent, statistical, language modeling based tool in Python that restores case information for text.

The model was inspired by the paper of Lucian Vlad Lita et al., tRuEcasIng but with some simplifications.

A model trained on NLTK English corpus comes with the package by default, and for other languages, a script is provided to create the model. This model is not perfect, train the system on a large and recent dataset to achieve the best results (e.g. on a recent dump of Wikipedia).

Prerequisites

Python 3

The project uses NLTK. Find install instructions here.

Installing

pip install truecaser

Usage

TODO

Training your own model

TODO

Contributing

TODO

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for truecase, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size truecase-0.0.3-py3-none-any.whl (28.4 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size truecase-0.0.3.tar.gz (28.8 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page