Downloads · 30 days
11
1% of all-time downloads
nfhakim/sentiment-analysis-c2
sentiment-analysis-c2 is a feature extraction model from nfhakim. Use it when you need embeddings to search or compare text. It is set up for transformers.
This is the second classification of sentiment analysis for (redacted) task
Downloads · 30 days
11
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 second classification of sentiment analysis for (redacted) task
import torch
from transformers import BertForSequenceClassification, BertTokenizer, BertConfig
tokenizer = BertTokenizer.from_pretrained("nfhakim/sentiment-analysis-c2")
config = BertConfig.from_pretrained("nfhakim/sentiment-analysis-c2")
model = BertForSequenceClassification.from_pretrained("nfhakim/sentiment-analysis-c2", config=config)
from transformers import pipeline
nlp = pipeline("text-classification", model="nfhakim/sentiment-analysis-c2")
results = nlp("Your input text here")