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

Bounds of the pos/neg scales for polarity #25

Open
chsuong opened this issue Jul 21, 2023 · 0 comments
Open

Bounds of the pos/neg scales for polarity #25

chsuong opened this issue Jul 21, 2023 · 0 comments

Comments

@chsuong
Copy link

chsuong commented Jul 21, 2023

Thanks for a great package, developers.

I'm trying to find out the boundaries for the polarity-based scores with the default option of sent_logit, ``a logit scale computed as $\mathrm{log}(pos + 0.5) - \mathrm{log}(neg + 0.5))$."

  1. What are the boundaries of pos and neg in the scale, respectively? [0,5] and [-5,0]?

  2. What would be the largest and smallest possible values of the polarity-based score for the example setting with the Lexicoder 2015 dictionary mentioned in the vignette?:

polarity(data_dictionary_LSD2015)
polarity(data_dictionary_LSD2015) <- 
  list(pos = c("positive", "neg_negative"), neg = c("negative", "neg_positive"))
print(data_dictionary_LSD2015, 0, 0)
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