niharikanath/assamese-sentiment-analysis
0
đ 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
đ§Ē Installation & Requirements
Clone the repo and install the requirements:
pip install -r requirements.txtInstall the custom Assamese tokenizer:
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:
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)