sarahai commited on
Commit
d39a310
1 Parent(s): 71eb82a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -1
README.md CHANGED
@@ -11,4 +11,38 @@ tags:
11
  - sentiment-analysis
12
  - movie-analysis
13
  - sentiment
14
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  - sentiment-analysis
12
  - movie-analysis
13
  - sentiment
14
+ - distilbert
15
+ - movie-reviews
16
+ ---
17
+
18
+ ## Model Description
19
+ This model is a `distilbert-base-uncased` fine-tuned for sentiment analysis on the IMDb movie review dataset. The model is trained to classify movie reviews into positive or negative sentiment.
20
+
21
+ ## Intended Use
22
+ The model is intended for sentiment analysis tasks, specifically to classify the sentiment of English-language movie reviews. It can be used by developers or data scientists who wish to include sentiment analysis features in their applications.
23
+
24
+ ## Training Data
25
+ The model was fine-tuned on the IMDb movie review dataset available from the Hugging Face datasets library. The dataset consists of 50,000 movie reviews from IMDb, labeled as positive or negative.
26
+
27
+ ## Training Procedure
28
+ The model was fine-tuned for 2 epochs with a batch size of 8, Adam optimizer with a learning rate of 2e-5.
29
+
30
+ ## Ethical Considerations
31
+ This model may inherit biases present in the IMDb dataset, and its predictions should be reviewed with critical consideration, especially if used in sensitive contexts.
32
+
33
+ ## Sample Usage in Python
34
+ Here's how you can use this model in Python:
35
+
36
+ ```python
37
+ from transformers import pipeline
38
+
39
+ # Load the sentiment analysis pipeline
40
+ classifier = pipeline('sentiment-analysis', model='sarahai/movie-sentiment-analysis')
41
+
42
+ # Analyze sentiment
43
+ review = "I really enjoyed this movie from start to finish!"
44
+ result = classifier(review)
45
+
46
+ print(result)
47
+
48
+ ```