Text Classification
Transformers
Safetensors
English
distilbert
sentiment-analysis
yelp
text-embeddings-inference
Instructions to use fitsblb/YelpReviewsAnalyzer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fitsblb/YelpReviewsAnalyzer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="fitsblb/YelpReviewsAnalyzer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("fitsblb/YelpReviewsAnalyzer") model = AutoModelForSequenceClassification.from_pretrained("fitsblb/YelpReviewsAnalyzer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Create README.md
Verified signature471d0d2 -
Create requirements.txt
Verified signature84f1605
-
Update README.md
Verified signature--- license: apache-2.0 language: en tags: - sentiment-analysis - large-language-model datasets: - yelp pipeline_tag: text-classification model_details: labels: LABEL_0: "Negative" LABEL_1: "Neutral" LABEL_2: "Positive" metrics: accuracy: 0.7850 precision: 0.7837 recall: 0.7850 f1_score: 0.7840 dataset: name: "Yelp Open Dataset Subset" url: "https://www.kaggle.com/datasets/capple7/yelp-open-data-philly-restaurants" features: - "Review Text" - "Star Ratings (1-5)" preprocessing: sentiment_mapping: Negative: "0-1 stars" Neutral: "1-2 stars" Positive: "3-4 stars" training: pretrained_model: "distilbert-base-uncased" hyperparameter_search: framework: "Optuna" config: learning_rate: 7.91e-5 batch_size: 32 epochs: 2 seed: 5 evaluation: strategy: "End-of-epoch" metrics: - "Accuracy" - "Precision" - "Recall" - "F…b40a66b -
Upload tokenizer
Verified signature7ce87b2 -
Upload DistilBertForSequenceClassification
Verified signature0921732 -
initial commit
Verified signaturefe862f1