Skip to content

Commit

Permalink
Merge pull request #6 from nimaeskandary/typo
Browse files Browse the repository at this point in the history
fix typo in scoring
  • Loading branch information
nimaeskandary authored Apr 17, 2018
2 parents f6f3626 + 365781a commit 7892c8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
28 changes: 10 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,16 @@ console.log(intensity);

#### About the Scoring

The ```compound``` score is computed by summing the valence scores of each word in
the lexicon, adjusted according to the rules, and then normalized to be between
-1 (most extreme negative) and +1 (most extreme positive). This is the most useful
metric if you want a single unidimensional measure of sentiment for a given sentence.
Calling it a 'normalized, weighted composite score' is accurate.

It is also useful for researchers who would like to set standardized thresholds
for classifying sentences as either positive, neutral, or negative.
Typical threshold values (used in the literature cited on this page) are:

* **positive sentiment**: ```compound``` score >= 0.5
* **neutral sentiment**: (```compound``` score > -0.5) and (``compound`` score < 0.5)
* **negative sentiment**: ```compound``` score <= -0.5

The ```pos```, ```neu```, and ```neg``` scores are ratios for proportions of text that
fall in each category (so these should all add up to be 1... or close to it with
float operation). These are the most useful metrics if you want multidimensional
measures of sentiment for a given sentence.
* The ``compound`` score is computed by summing the valence scores of each word in the lexicon, adjusted according to the rules, and then normalized to be between -1 (most extreme negative) and +1 (most extreme positive). This is the most useful metric if you want a single unidimensional measure of sentiment for a given sentence. Calling it a 'normalized, weighted composite score' is accurate.

It is also useful for researchers who would like to set standardized thresholds for classifying sentences as either positive, neutral, or negative.
Typical threshold values (used in the literature cited on this page) are:

#. **positive sentiment**: ``compound`` score >= 0.05
#. **neutral sentiment**: (``compound`` score > -0.05) and (``compound`` score < 0.05)
#. **negative sentiment**: ``compound`` score <= -0.05

* The ``pos``, ``neu``, and ``neg`` scores are ratios for proportions of text that fall in each category (so these should all add up to be 1... or close to it with float operation). These are the most useful metrics if you want multidimensional measures of sentiment for a given sentence.

## Development

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vader-sentiment",
"version": "1.1.2",
"version": "1.1.3",
"description": "javascript port of vader sentiment tool",
"main": "build/vaderSentiment.bundle.js",
"scripts": {
Expand Down

0 comments on commit 7892c8a

Please sign in to comment.