Skip to content

Commit a6f19bf

Browse files
author
xuwenyihust
committed
Some updates.
1 parent e95890d commit a6f19bf

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,21 @@ Start a mongod process
3131
```
3232
sudo mongod
3333
```
34-
### Twitter Input
35-
Wait for connection to start streaming tweets.
36-
```
37-
python3.4 src/stream.py
38-
```
3934
### Model Training
4035
Run Spark jobs to train a Naive Bayes model for later sentiment analysis.
4136
```
4237
$SPARK_HOME/bin/spark-submit src/model.py > log/model.log
4338
```
44-
39+
You can check the accuracy of the trained model in **log/model.log**:
40+
```
41+
>>> Accuracy
42+
0.959944108057755
43+
```
44+
### Twitter Input
45+
Wait for connection to start streaming tweets.
46+
```
47+
python3.4 src/stream.py
48+
```
4549
### Spark Streaming
4650
Run Spark jobs to do real-time analysis on the tweets.
4751
```

0 commit comments

Comments
 (0)