Skip to main content

Tamil Lemmatizer

Tamil Lemmatizer is a character-level lemmatization library for Tamil text.
It normalizes inflected Tamil word forms and maps them to their base lemma using a deep learning model (PyTorch).


✨ Features

  • ✅ Lemmatizes Tamil words to their base form
  • ✅ Handles unseen words using a character-level sequence model
  • ✅ Simple Python API
  • ✅ Supports batch inference
  • ✅ Open-source and extensible

📦 Installation

pip install tamil-lemmatizer

🚀 Quick Start

from tamil_lemmatizer import TamilLemmatizer

lemmatizer = TamilLemmatizer()

word = "சென்றார்கள்"
lemma = lemmatizer.lemmatize(word)

print(lemma)   # Output: செல்

Batch input

words = ["பாடுகிறது", "வந்தார்கள்", "சென்றேன்"]
print(lemmatizer.lemmatize_batch(words))

📚 Description

Tamil is morphologically rich. A single lemma can have hundreds of inflected variations. This library uses:

  • A character-level encoder-decoder architecture
  • Trained using PyTorch on a curated Tamil lemma dataset
  • Supports lemmatization for verbs and nouns

🛠️ Model Architecture

  • Encoder: BiLSTM or Transformer (depending on version)
  • Decoder: Attention-based sequence generator
  • Loss: Cross entropy over Tamil character vocabulary


🔧 CLI Usage

tamil-lemmatizer "வந்தார்கள்"

📄 License

This project is released under the MIT License.


🤝 Contributing

Pull requests are welcome. If contributing major changes, open an issue first to discuss what you want to change.


✉️ Contact

Maintainer: Hemanth Kumar GitHub: Hemanth Thunder


Metadata

Release files for tamil-lemmatizer 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tamil-lemmatizer 0.0.2
File Size Uploaded
tamil_lemmatizer-0.0.2.tar.gz 5.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for tamil-lemmatizer 0.0.2
File Interpreter ABI Platform
tamil_lemmatizer-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 MB

Release files / tamil_lemmatizer-0.0.2.tar.gz

Download URL tamil_lemmatizer-0.0.2.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
cb2d7a0afd72f22e8a5472513178fddfc488c1ce1847e95d0517ced8431e70b7
BLAKE2b-256 checksum
How to use checksums
686bdca2beaa877abaf942fa41be4175b77fdfde1c20247bd1919a19a803f4c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / tamil_lemmatizer-0.0.2-py3-none-any.whl

Download URL tamil_lemmatizer-0.0.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a5f3623aaa53fbfa2784518754b10624fbadb6d13a3189dda8acfdd12d57e64
BLAKE2b-256 checksum
How to use checksums
365764d2d97aa2ab69ba70f19f4ba592239257ced7d759964e0174745c07f61c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page