cjhutto / vaderSentiment

VADER Sentiment Analysis. VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media, and works well on texts from other domains.
MIT License
4.43k stars 1k forks source link

repeat text #76

Closed butalso closed 5 years ago

butalso commented 5 years ago

why here you index function?when the text is long and repeat word would occur, then the i here get is not correct.for example:to be or not to be.

https://github.com/cjhutto/vaderSentiment/blob/cfc2bce747afb2c49799c1de1dcf517358948d71/vaderSentiment/vaderSentiment.py#L266

cjhutto commented 5 years ago

Corrected