Downloads · 30 days
9
35% of all-time downloads
Sathish-Dsk/sample_stock_sentiment_model
sample_stock_sentiment_model is a text classification model from Sathish-Dsk. Use it when you need a label for a piece of text. The card lists the license as mit.
This is a BERT-based text classification model trained on custom CSV data.
Downloads · 30 days
9
35% of all-time downloads
All-time downloads
26
Public
Parameters
67M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin268 MB · 50%
From the Hugging Face model README
This is a BERT-based text classification model trained on custom CSV data.
bert-base-uncaseddata.csv)from transformers import AutoTokenizer, AutoModelForSequenceClassification
from transformers import pipeline
# Hugging Face Hub model ID (online)
model_id = "Sathish-Dsk/sample_stock_sentiment_model"
# Load model and tokenizer directly from Hugging Face
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
# Create sentiment analysis pipeline
nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
# Test input
result = nlp("Stock prices of Reliance are expected to rise tomorrow.")
print(result)