POSNEG Sentiment Classification Model

This model is trained on the POSNEG dataset for binary sentiment classification.

Dataset

  • Name: POSNEG
  • Task: Text Classification
  • Labels: Positive (1), Negative (0)

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

tokenizer = AutoTokenizer.from_pretrained("chaosbringerc/POSNEG-Dataset-API")
model = AutoModelForSequenceClassification.from_pretrained("chaosbringerc/POSNEG-Dataset-API")

text = "This is a great product!"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train chaosbringerc/POSNEGPRETRAINED

Space using chaosbringerc/POSNEGPRETRAINED 1