Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple configurations of polarity #3

Open
kbenoit opened this issue Jul 8, 2020 · 0 comments
Open

Allow multiple configurations of polarity #3

kbenoit opened this issue Jul 8, 2020 · 0 comments

Comments

@kbenoit
Copy link
Contributor

kbenoit commented Jul 8, 2020

For instance:

polarity(data_dictionary_LSD2015) <- 
  list(simple = list(pos = "negative", neg = "negative"),
       expanded = list(pos = c("positive", "neg_negative"), neg = c("negative", "neg_positive")))

then the output would be:

  doc_id  simple  expanded
      d1     1.3       1.6
      d2    -2.1      -2.3

instead of a single comment called sentiment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant