Text Classification
Transformers
Safetensors
English
distilbert
nlp
hotels
reviews
sentiment-analysis
text-embeddings-inference
Instructions to use nhull/distilbert-sentiment-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nhull/distilbert-sentiment-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nhull/distilbert-sentiment-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nhull/distilbert-sentiment-model") model = AutoModelForSequenceClassification.from_pretrained("nhull/distilbert-sentiment-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload validation_results_distilbert.csv
Verified signature4e3b935 -
Update README.md
Verified signaturec031086 -
Update README.md
Verified signature3af7e89 -
Update README.md
Verified signature48eba65 -
Update README.md
Verified signature239c59d -
Update README.md
Verified signatureb2e7dd7 -
Create README.md
Verified signatureacdedae6 -
Delete README.md
Verified signatureaa5ef4b6 -
Update README.md
Verified signature# DistilBERT Sentiment Analysis Model ## Overview This repository contains a fine-tuned **DistilBERT** model trained for sentiment analysis on TripAdvisor reviews. The model predicts sentiment scores on a scale of 1 to 5 based on review text. - **Base Model**: `distilbert-base-uncased` - **Trained Dataset**: [nhull/tripadvisor-split-dataset-v2](https://huggingface.co/datasets/nhull/tripadvisor-split-dataset-v2) - **Use Case**: Sentiment classification for customer reviews to derive insights into customer satisfaction. - **Output**: Sentiment labels (1-5). --- ## Model Details - **Learning Rate**: `3e-05` - **Batch Size**: `64` - **Epochs**: `10` (with early stopping) - **Patience**: `5` (epochs without improvement) - **Tokenizer**: `distilbert-base-uncased` - **Framework**: PyTorch + Hugging Face Transformers --- ## Training and Validation ### Dataset The dataset used for training, validation, and testing is [nhull/tripadvisor-split-dataset-v2](https://huggingface.co/datasets…1a334dc -
Create README.md
Verified signature# DistilBERT Sentiment Analysis Model ## Overview This repository contains a fine-tuned **DistilBERT** model trained for sentiment analysis on TripAdvisor reviews. The model predicts sentiment scores on a scale of 1 to 5 based on review text. - **Base Model**: `distilbert-base-uncased` - **Trained Dataset**: [nhull/tripadvisor-split-dataset-v2](https://huggingface.co/datasets/nhull/tripadvisor-split-dataset-v2) - **Use Case**: Sentiment classification for customer reviews to derive insights into customer satisfaction. - **Output**: Sentiment labels (1-5). --- ## Model Details - **Learning Rate**: `3e-05` - **Batch Size**: `64` - **Epochs**: `10` (with early stopping) - **Patience**: `5` (epochs without improvement) - **Tokenizer**: `distilbert-base-uncased` - **Framework**: PyTorch + Hugging Face Transformers --- ## Training and Validation ### Dataset The dataset used for training, validation, and testing is [nhull/tripadvisor-split-dataset-v2](https://huggingface.co/datasets…61f1855 -
Create README.md
Verified signature# DistilBERT Sentiment Analysis Model ## Overview This repository contains a fine-tuned **DistilBERT** model trained for sentiment analysis on TripAdvisor reviews. The model predicts sentiment scores on a scale of 1 to 5 based on review text. - **Base Model**: `distilbert-base-uncased` - **Trained Dataset**: [nhull/tripadvisor-split-dataset-v2](https://huggingface.co/datasets/nhull/tripadvisor-split-dataset-v2) - **Use Case**: Sentiment classification for customer reviews to derive insights into customer satisfaction. - **Output**: Sentiment labels (1-5). --- ## Model Details - **Learning Rate**: `3e-05` - **Batch Size**: `64` - **Epochs**: `10` (with early stopping) - **Patience**: `5` (epochs without improvement) - **Tokenizer**: `distilbert-base-uncased` - **Framework**: PyTorch + Hugging Face Transformers --- ## Training and Validation ### Dataset The dataset used for training, validation, and testing is [nhull/tripadvisor-split-dataset-v2](https://huggingface.co/datasets…222e461 -
Upload 6 files
Verified signature5c05212 -
initial commit
Verified signaturefc8c5be