CoolFace
Modelpublic

Shrav20/colloquial-tamil-mt

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes11downloads
Model Card

Model Card for Shrav20/colloquial-tamil-mt

๐Ÿ“Œ Model Summary

This model is a Machine Translation (MT) model designed for converting English to colloquial Tamil and vice versa. Unlike traditional Tamil MT models, which focus on formal Tamil, this model generates translations in natural spoken Tamil commonly used in everyday conversations.

๐Ÿ“Š Model Details

  • โ€”Developed by: Shrav20
  • โ€”Funded by: Independent
  • โ€”Shared by: Shrav20
  • โ€”Model Type: Sequence-to-Sequence (Seq2Seq) Translation
  • โ€”Architecture: Based on M2M100 (Facebookโ€™s Multilingual MT Model), finetuned for colloquial Tamil.
  • โ€”Languages Supported:
  • โ€”English โ†’ Tamil (Colloquial)
  • โ€”Tamil (Colloquial) โ†’ English
  • โ€”License: MIT
  • โ€”Finetuned from: facebook/m2m100_418M

๐Ÿ›  Model Usage

๐Ÿ”น Direct Use

You can use this model for colloquial Tamil translation in conversational AI, subtitles, and chatbots.

Example Code:
python
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("Shrav20/colloquial-tamil-mt")
model = AutoModelForSeq2SeqLM.from_pretrained("Shrav20/colloquial-tamil-mt")

def translate(text, src_lang="en", tgt_lang="ta"):
    inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
    output = model.generate(**inputs)
    return tokenizer.decode(output[0], skip_special_tokens=True)

# Example Translation
print(translate("The pharmacy is near the bus stop. "))  # Output: "Bus stop pakkathula pharmacy iruku."

๐Ÿ“– Training Details

๐Ÿ“Œ Training Dataset

  • โ€”This model is finetuned on Shrav20/colloquial-tamil dataset.
  • โ€”Sources:
  • โ€”sangeethat/colloquial
  • โ€”AI-generated data
  • โ€”Internet-scraped content
  • โ€”Manually verified colloquial sentences

๐Ÿ›  Training Hyperparameters

  • โ€”Batch Size: 16
  • โ€”Learning Rate: 5e-5
  • โ€”Epochs: 3
  • โ€”Optimizer: AdamW
  • โ€”Precision: fp16 (mixed precision)
  • โ€”LoRA Adapters: Enabled for efficient fine-tuning

๐Ÿ“Š Evaluation

๐Ÿ“Œ Testing Data & Metrics

  • โ€”Dataset: 5,000 colloquial Tamil-English sentence pairs
  • โ€”Evaluation Metrics:
  • โ€”BLEU Score: 28.5
  • โ€”METEOR Score: 34.1
  • โ€”TER: 41.2

๐Ÿ“Œ Example Outputs

EnglishTamil (Colloquial)
The pharmacy is near the bus stop.Bus stop pakkathula pharmacy iruku.
Take this medicine after food.Food saptadhukku apram intha medicine eduthukungo.
Train tickets for tomorrow are available.Naalaikku train tickets available iruku.

๐Ÿšจ Bias, Risks, and Limitations

  • โ€”Dialectal Bias: The model is trained on a specific style of spoken Tamil and may not generalize to all Tamil dialects.
  • โ€”Data Noise: Some AI-generated content may not be fully accurate.
  • โ€”Context Sensitivity: Model struggles with complex sentence structures and ambiguous meanings.

๐Ÿ’ก How to Contribute

  • โ€”If you find issues or have improvements, feel free to open a GitHub issue or contribute data via Hugging Face!

๐Ÿ“ฉ Contact: Shrav20 via Hugging Face discussions.


๐Ÿ“ Citation

If you use this model, please cite:

@misc{shrav20colloquial,
  author = {Shrav20},
  title = {Colloquial Tamil Machine Translation Model},
  year = {2025},
  publisher = {Hugging Face},
  url = {https://huggingface.co/Shrav20/colloquial-tamil-mt}
}

๐ŸŒฑ Future Improvements

โœ… More diverse datasets โœ… Better handling of Tamil-English code-mixing โœ… Improved sentence fluency with RLHF (Reinforcement Learning with Human Feedback)