sentimentjs
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "sentimentjs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,4 @@ # sentimentjs | ||
<img src="example-screenshot.png"> | ||
This sentiment library is used in our Crowd Parser app, which analyzes Twitter sentiment. Check it out here: | ||
@@ -156,4 +158,40 @@ | ||
## Using the Example | ||
First, navigate to the `example` directory. | ||
``` | ||
cd example | ||
``` | ||
Next, install dependencies: | ||
``` | ||
npm install -g bower | ||
npm install | ||
bower install | ||
``` | ||
Next, start the server: | ||
``` | ||
node server | ||
``` | ||
Finally, open `http://localhost:3000` in your browser. | ||
To test, edit the array of strings in `server.js`. You can also try to use the `tweetsArray` method and enter an array of tweets. | ||
``` | ||
var results = allLayersAnalysis.stringsArray(['I love dogs. They are wonderful! 😍 😍', 'I hate brussel sprouts. They are terrible. 😾', 'This is great! But also bad.']); | ||
``` | ||
Change the above array for testing. Again, the sample output can be displayed like this: | ||
<img src="example-screenshot.png"> | ||
There is a function in `index.html` to highlight the positive and negative words in the text. | ||
## Contributing | ||
We welcome you to join us in creating a better sentiment library! Our library is still in an infant stage, so contributions would be greatly appreciated! |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1048892
104
195
0