mirror of
https://github.com/gmihaila/ml_things.git
synced 2021-10-04 01:29:04 +03:00
Update README.md
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
## Opinion Lexicon: Positive & Negative
|
||||
|
||||
This is borrowed from [shekhargulati
|
||||
### Python Snippet:
|
||||
|
||||
```python
|
||||
Import io
|
||||
|
||||
positive_words = io.open("/path/to/positive-words.txt", encoding='UTF-8').read().strip().split('\n')
|
||||
negative_words = io.open("/path/to/negative-words.txt", encoding='UTF-8').read().strip().split('\n')
|
||||
```
|
||||
|
||||
### This is borrowed from [shekhargulati
|
||||
/
|
||||
sentiment-analysis-python](https://github.com/shekhargulati/sentiment-analysis-python)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user