Instructions to use dariadaria/reviews_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dariadaria/reviews_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dariadaria/reviews_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dariadaria/reviews_classifier") model = AutoModelForSequenceClassification.from_pretrained("dariadaria/reviews_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from dariadaria/reviews_classifier: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/dariadaria/reviews_classifier/resolve/main/README.md
- Command line
-
hf download hf://dariadaria/reviews_classifier/README.md
-
curl -L -o README.md https://huggingface.co/dariadaria/reviews_classifier/resolve/main/README.md
599 Bytes
SENTIMENT_LABELS = { 'NEGATIVE': 0, 'POSITIVE': 1, 'NEUTRAL': 2, }
num_classes = 3
language:
- en
thumbnail: "url to a thumbnail used in social sharing"
tags:
- sentiment analysis
license: commercial use disallowed
datasets:
- dariadaria/disneyland_reviews