Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. SApre82015 <- analyzeSentiment(pre82015docs,aggregate = NULL)
  2. SApre82015$SentimentGI
  3.  
  4. #Show each review's individual sentiment direction (pos/neut/neg)
  5. pre82015$direction <- convertToDirection(SApre82015$SentimentGI)
  6.  
  7. dic <- DictionaryGI
  8. dict <- SentimentDictionaryBinary(dic$positive, dic$negative)
  9. ruleSentiment(pre82015dtm, dict)
  10.  
  11. pre82015$ratio[pre82015$direction == 'positive'/pre82015$direction == 'positive'|'negative']
  12.  
  13. Error: unexpected '==' in "pre82015$ratio[pre82015$direction == 'positive'/pre82015$direction =="
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement