Views
No views yet
distilbert-base-uncased and fine-tuned for binary sentiment classification (positive/negative).sentiment_model/ : Contains the trained model files.results/checkpoint-125/ : Checkpoint directory from training.sample_data/ : Sample dataset files used for training and evaluation.wandb/ : Weights & Biases logs and run data.pip install transformers datasets sentence-transformers1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2
3tokenizer = AutoTokenizer.from_pretrained('kaniskaZoro/sentiment-analyzer')
4model = AutoModelForSequenceClassification.from_pretrained('kaniskaZoro/sentiment-analyzer')
5
6text = "The movie was fantastic!"
7inputs = tokenizer(text, return_tensors='pt', padding=True, truncation=True, max_length=256)
8outputs = model(**inputs)Trainer API from Hugging Face Transformers with the following settings: