Skip to main content

Tiny Tamil text utilities: normalize, tokenize, stopword removal, graphemes

Project description

tamil-utils

Tiny Tamil text utilities: normalize, tokens, remove_stopwords, graphemes.

from tamil_utils import normalize, tokens, remove_stopwords, graphemes

s = "இது ஒரு சோதனை 👋🏽"
print(tokens(s))                              # ['இது', 'ஒரு', 'சோதனை']
print(remove_stopwords(tokens(s), preset="ta"))  # ['சோதனை']
print(graphemes("👩🏽‍💻"))                       # ['👩🏽‍💻']
                      # ['👩🏽‍💻']

Installation

pip install tamil-utils

Windows CLI (module form)

python -m tamil_utils.cli tokens "இது ஒரு சோதனை"

Sentence split

python -m tamil_utils.cli sents "இது ஒரு வாக்கியம். இது இரண்டாம்? சரி!"

Numerals

python -m tamil_utils.cli to-arabic "௨௦௨௫"   # -> 2025
python -m tamil_utils.cli to-tamil "123"     # -> ௧௨௩

Tokens with stopwords removed (preset)

python -m tamil_utils.cli tokens --rmstop "இது ஒரு சோதனை"

Status

PyPI CI

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

tamil_utils-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

tamil_utils-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file tamil_utils-0.1.0.tar.gz.

File metadata

  • Download URL: tamil_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tamil_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e0fa1f9fc432503b6c283e3d863b90e659d617e24a70f576bdf0323a68a64a8
MD5 c04d27124a87f1455da4cfbb68b094f1
BLAKE2b-256 5259f884108d7885b27269fb2ccb864a627cb92cb008a7c289698fa56966ea41

See more details on using hashes here.

File details

Details for the file tamil_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tamil_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tamil_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6841675e4cfec0979b00ca0451b9b9c9e1b7f674fe3c33469e45b0b0d59ca2f
MD5 4bbc7a62ac99c402124fa9a625e96f08
BLAKE2b-256 c0e95f377b1739904b9c6041cd2facfb7ed7261c3170e5dafbd9c8b94cb4397e

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