Simple Text Classifier

This is a fine-tuned model for text classification based on distilbert-base-uncased.

Model Details

  • Model Type: Text Classification
  • Number of Classes: 2
  • Hidden Size: 768

Usage

from transformers import AutoTokenizer
from huggingface_text_classifier.model import SimpleTextClassifier

# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("ajinathgh/sentiment_analysis")
model = SimpleTextClassifier.from_pretrained("ajinathgh/sentiment_analysis")

# Prepare input
inputs = tokenizer("Example text to classify", return_tensors="pt")

# Get predictions
outputs = model(**inputs)
predicted_class = outputs.argmax(-1).item()
Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 1 Ask for provider support

Model tree for ajinathgh/sentiment_analysis

Finetuned
(8073)
this model

Dataset used to train ajinathgh/sentiment_analysis