Update README.md

This commit is contained in:
George Mihaila
2020-04-26 18:46:23 -05:00
committed by GitHub
parent 7d54930bea
commit 54cfd3a9a9

View File

@@ -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)