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

Added sentiment value calculation #12

Merged
merged 1 commit into from Jun 15, 2015
Merged

Conversation

alfonso-noriega
Copy link
Contributor

Added sentiment value calculation based on prediction vector from stanford core NLP and basic test for it.

westei added a commit that referenced this pull request Jun 15, 2015
Added sentiment value calculation
@westei westei merged commit da18072 into westei:master Jun 15, 2015
westei added a commit that referenced this pull request Jun 15, 2015
* the number of classes is no longer hard coded (to `5`) but taken from the number of predictions in the result
* the weights for the classes are no linger hard coded but calculated. For that I added a Interface for providing the weight for the index and an simple linear implementation (replacing the hard coded vector)
* added the possibility to use Double#NaN to indicate that sentiment classes can not be converted to double weights
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

Successfully merging this pull request may close these issues.

None yet

2 participants