Skip to content

1as-sys/NLP_P

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

  1. Dataset & Prep

Dataset: IMDb Movie Reviews.

Why: Widely used for sentiment tasks.

Prep: Lowercasing, punctuation removal, tokenization.

  1. Prompt Engineering

Prompt 1: “Classify the sentiment of this review: [text]” → direct label.

Prompt 2: “Does the reviewer sound happy or upset? Review: [text]” → natural response.

Prompt 3: “Return JSON with {label, confidence} for review: [text]” → structured output.

  1. Evaluation

Model: distilbert-base-uncased-finetuned-sst-2-english.

Metrics (tiny dataset): Accuracy 1.00, Precision 1.00, Recall 1.00, F1 1.00.

  1. Troubleshooting

Issue: Sarcasm & negation confuse models.

Fix: Add sarcastic examples or prompt model to “consider sarcasm.”

  1. Run pip install transformers scikit-learn python assignment.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages