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)))      # ['சோதனை']
print(graphemes("👩🏽‍💻"))               # ['👩🏽‍💻']

Installation

pip install tamil-utils

Windows CLI (module form avoids PATH issues)

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

New in v0.0.2

# 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 "இது ஒரு சோதனை"


[![PyPI version](https://img.shields.io/pypi/v/tamil-utils)](https://pypi.org/project/tamil-utils/)
![PyPI - Downloads](https://img.shields.io/pypi/dm/tamil-utils)

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.0.2.tar.gz (5.3 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.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tamil_utils-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 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.0.2.tar.gz
Algorithm Hash digest
SHA256 0c02d2220a69260eb496a4b9889278a8f44656e5ed2976387ada2d8082263be4
MD5 68be82e708335541425d6a73a6ed1b7b
BLAKE2b-256 d31a6d029df0ac5eb0ddb5b9d6f3bd84bec56eb33738bff1d3053613bfe37ee0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tamil_utils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 288ed5c61dc5b32c9d0e7171e1e821ed8f5ae387c98c0c53dbe64f9949f7fa98
MD5 4aa7c7a60aa8dd13a3e35ff7b93e5814
BLAKE2b-256 5e7c774ea2d3b3b9f54f474abc48af3cd05305b870c5669ad1bdbd9a6e3bc810

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