Downloads · 30 days
13
10% of all-time downloads
harixn/IN-finbert
IN-finbert is a text classification model from harixn. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Model Name: FinBERT Model Type: BERT (bert-base-uncased) Task: Sentiment Analysis (Stock Market) Number of Labels: 3 (positive, negative, neutral) Intended Use: Predict sentiment of financial news and social media pos…
Downloads · 30 days
13
10% of all-time downloads
All-time downloads
132
Public
Parameters
109M
876 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin438 MB · 50%
From the Hugging Face model README
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("harixn/IN-finbert")
model = AutoModelForSequenceClassification.from_pretrained("harixn/IN-finbert")
text = "The stock price of XYZ surged today."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
# Get probabilities
probs = torch.softmax(outputs.logits, dim=1)
print("Probabilities:", probs)
# Get predicted class
pred_class = torch.argmax(probs, dim=1).item()
classes = ["negative", "neutral", "positive"]
print("Predicted class:", classes[pred_class])
pytorch_model.bin: Trained model weightsconfig.json: Model configurationvocab.txt, tokenizer_config.json, special_tokens_map.json, tokenizer.json: Tokenizer filesIf you use this model, please cite it as:
FinBERT: Sentiment Analysis Model for Indian Stock Market, harixn, 2025