Run this model with HF Jobs

Run nfhakim/sentiment-analysis-c2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/nfhakim/sentiment-analysis-c2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/nfhakim/sentiment-analysis-c2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

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

How to import

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

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

results = nlp("Your input text here")
Downloads last month
8
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support