CoolFace
Modelpublic

niharikanath/assamese-sentiment-analysis

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes
Model Card

🌟 Assamese Sentiment Analysis with LSTM

Tags: #text-classification #sentiment-analysis #Assamese #LSTM

A deep learning-powered tool to classify Assamese text as Positive, Negative, or Neutral using an LSTM model tailored for the Assamese language.

🚀 Key Features

  • —🔍 Sentiment Analysis for Assamese – Supports full sentiment classification of Assamese text
  • —🧠 Deep Learning Backbone – Powered by TensorFlow/Keras with a Long Short-Term Memory (LSTM) network
  • —✨ Advanced Preprocessing – Includes tokenization, text cleaning, optional stemming, and stopword removal
  • —🧰 Custom Tokenization – Leverages AssameseTokenizer for accurate language handling
  • —📈 Robust Evaluation Metrics – F1-score, precision, recall, and accuracy

🧠 Model Overview

PropertyDetails
Model Nameniharikanath/assamese-sentiment-analysis
ArchitecturePretrained LSTM-based neural network
LanguageAssamese (āĻ…āϏāĻŽā§€āϝāĻŧāĻž)
Classes3 – Positive, Neutral, Negative
Use CasesCustomer feedback, social media monitoring, opinion mining

đŸ§Ē Installation & Requirements

Clone the repo and install the requirements:

bash
pip install -r requirements.txt

Install the custom Assamese tokenizer:

bash
git clone https://github.com/KashyapKishore/AssameseTokenizer.git
cd AssameseTokenizer
pip install .

âš™ī¸ Model Description

This model was developed using Assamese text data and trained with a custom tokenizer specifically designed for Assamese script. It uses an LSTM architecture, making it well-suited for capturing the sequence and context of natural language in sentiment classification tasks.

  • —📚 Training Data The dataset was curated from public sources such as news articles, social media comments, and feedback forms, and was manually labeled into three sentiment classes: Positive, Neutral, and Negative.
  • â€”đŸ‹ī¸ Training Procedure
  • â€”âœ‚ī¸ Preprocessing: Text cleaning, tokenization using AssameseTokenizer, optional stemming and stopword removal
  • —đŸ”ĸ Input Handling: Sequences padded or truncated to a fixed length of 512 tokens
  • —🧠 Architecture: Embedding layer → LSTM → Dense (Softmax)
  • —💧 Regularization: Dropout layers to prevent overfitting
  • â€”âš™ī¸ Optimizer: Adam
  • —🔁 Epochs: Trained for X epochs (replace with your actual number)
  • —📊 Evaluation: Final validation accuracy and F1-score: Insert actual metrics here

đŸ“Ļ Intended Usage

Ideal for:

  • â€”đŸ—¨ī¸ Social media sentiment tracking in Assamese
  • —đŸ“ĸ Public opinion & brand monitoring
  • —📚 Research on low-resource NLP in Indic languages
  • â€”âš ī¸ Limitations / Not Recommended For:

Code-mixed Assamese-English input

Domain-specific texts (e.g., legal, medical) without additional fine-tuning


đŸ§Ē Quickstart: Using the Model

You can load and run the model easily via Hugging Face's transformers pipeline:

bash
from transformers import pipeline

model_name = "niharikanath/assamese-sentiment-analysis"
pipe = pipeline("text-classification", model=model_name, tokenizer=model_name)

result = pipe("āĻāχ āĻ–āĻžāĻŦāĻžā§°āϟāĻž āĻāĻ•āĻĻāĻŽ āĻ­āĻžāϞ⧋ āφāĻ›āĻŋāϞ!")  # Sample Assamese sentence
print(result)

📚 Reference Citations


🤝 In Collaboration with