mjockers / syuzhet

An R package for the extraction of sentiment and sentiment-based plot arcs from text
334 stars 72 forks source link

Support for user defined sentiment lexicons #13

Closed mjockers closed 7 years ago

mjockers commented 8 years ago

Right now the package only works with the built in sentiment lexicons. It makes sense to add functionality that will allows users to work with their own lexicons or with lexicons in other languages.

strategist922 commented 7 years ago

hope this function could be add asap, I want to help to extend this package to support Chinese Language

mjockers commented 7 years ago

I have added a functionality to the get_sentiment function that allows users to pass in a custom lexicon. I have documented an example of how to do this in the vignette. This and other changes to support other languages exist only in the latest dev version on GitHub and will need to be tested before posting to CRAN.