YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Sentiment Analysis Model

Project Overview

This is a beginner-friendly sentiment analysis model uploaded to the Hugging Face Hub.

Base Model

distilbert-base-uncased-finetuned-sst-2-english

Task

Sentiment Analysis

What This Model Does

This model predicts whether an English sentence is POSITIVE or NEGATIVE.

Example Usage

from transformers import pipeline

pipe = pipeline(
    "sentiment-analysis",
    model="alijawad252525/my-sentiment-model"
)

print(pipe("Great movie!"))

Example Outputs

Input: I love machine learning.
Output: POSITIVE

Input: The service was terrible.
Output: NEGATIVE

Limitations

  • Works best on English text.
  • May not work well on Urdu or Roman Urdu.
  • May give wrong results on sarcasm.
  • This is a learning project for practicing Hugging Face model publishing.

Skills Practiced

  • Loading a pretrained Transformer model
  • Using tokenizer and model
  • Running sentiment analysis inference
  • Uploading model to Hugging Face Hub
  • Creating a model card

Author

Ali Jawad

Downloads last month
10
Safetensors
Model size
67M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support