mrshu commited on
Commit
cbe038b
1 Parent(s): b8c53d4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -3
README.md CHANGED
@@ -1,3 +1,43 @@
1
- ---
2
- license: unknown
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: unknown
3
+ task_categories:
4
+ - text-classification
5
+ language:
6
+ - en
7
+ size_categories:
8
+ - 1M<n<10M
9
+ ---
10
+
11
+ # About Dataset
12
+ This dataset consists of a few million Amazon customer reviews (input text) and star ratings (output labels) for training fastText models for sentiment analysis.
13
+
14
+ The dataset is based on real business data at a reasonable scale, which can be trained on a modest laptop in minutes.
15
+
16
+ ## Content
17
+ The fastText supervised learning tutorial requires data in this format:
18
+
19
+ `__label__<X> __label__<Y> ... <Text>`
20
+
21
+ - `X` and `Y` are the class names, without quotes and all on one line.
22
+ - In this dataset, the classes are `__label__1` and `__label__2`, with only one class per row.
23
+ - `__label__1` corresponds to 1- and 2-star reviews, while `__label__2` corresponds to 4- and 5-star reviews.
24
+ - 3-star reviews (neutral sentiment) are excluded from the dataset.
25
+ - Review titles are prepended to the text, followed by a colon and a space.
26
+ - Most reviews are in English, with a few in other languages like Spanish.
27
+
28
+ ## Source
29
+ The data was obtained from Xiang Zhang's Google Drive directory in .csv format, which was then adapted for use with fastText.
30
+
31
+ ## Training and Testing
32
+ Follow the instructions in the fastText supervised learning tutorial to set up the directory.
33
+
34
+ ### Training
35
+ To train the model, use:
36
+
37
+ ```bash
38
+ ./fasttext supervised -input train.ft.txt -output model_amzn
39
+ ```
40
+
41
+ ## Acknowledgments
42
+
43
+ Dataset obtained from https://www.kaggle.com/datasets/bittlingmayer/amazonreviews/data