Downloads · 30 days
8
1% of all-time downloads
nfhakim/sentiment-analysis-c1
sentiment-analysis-c1 is a text classification model from nfhakim. Use it when you need a label for a piece of text. It is set up for transformers.
This is the first classification of sentiment analysis for (redacted) task
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
1.3K
Public
Repo size
996 MB
Likes
0
Public
Click a slice to open those files.
.bin498 MB · 100%
From the Hugging Face model README
This is the first classification of sentiment analysis for (redacted) task
import torch
from transformers import BertForSequenceClassification, BertTokenizer, BertConfig
tokenizer = BertTokenizer.from_pretrained("nfhakim/sentiment-analysis-c1")
config = BertConfig.from_pretrained("nfhakim/sentiment-analysis-c1")
model = BertForSequenceClassification.from_pretrained("nfhakim/sentiment-analysis-c1", config=config)
from transformers import pipeline
nlp = pipeline("text-classification", model="nfhakim/sentiment-analysis-c1")
results = nlp("Your input text here")