Team Ai
Modelpublic

nfhakim/sentiment-analysis-c2

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes11downloads
Model Card

This is the second classification of sentiment analysis for (redacted) task

How to import

python
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)

How to use

python
from transformers import pipeline
nlp = pipeline("text-classification", model="nfhakim/sentiment-analysis-c2")

results = nlp("Your input text here")