Skip to main content

Command-line interface (CLI) and library to normalize English texts.

Project description

english-text-normalization

PyPI PyPI MIT PyPI PyPI PyPI

Command-line interface (CLI) and library to normalize English texts.

Installation

pip install english-text-normalization --user

Usage as CLI

# Show supported normalizing operations
norm-eng-cli list-operations -h

# Normalize
norm-eng-cli normalize -h

Usage as a library

from english_text_normalization import *

Methods

  • expand_abbreviations
  • normalize_am_and_pm
  • ...

Dependencies

  • pyenchant
  • nltk
  • inflect

Contributing

If you notice an error, please don't hesitate to open an issue.

License

MIT License

Acknowledgments

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410

Citation

If you want to cite this repo, you can use this BibTeX-entry:

@misc{stetn22,
  author = {Sternkopf, Jasmin and Taubert, Stefan},
  title = {english-text-normalization},
  year = {2022},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/jasminsternkopf/english_text_normalization}}
}

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

english-text-normalization-0.0.2.tar.gz (35.1 kB view hashes)

Uploaded Source

Built Distribution

english_text_normalization-0.0.2-py3-none-any.whl (48.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page