Sentment Analysis in Javascript using the AFINN lexicon
The demonstration UI uses Bootstrap and a single javascript file that contains the sentiment analysis code along with the lexicon.
Sentiment Analysis in Javascript using the AFINN Lexicon
Home Page: https://darenr.github.io/afinn/
License: MIT License
Sentment Analysis in Javascript using the AFINN lexicon
The demonstration UI uses Bootstrap and a single javascript file that contains the sentiment analysis code along with the lexicon.
I have been using AFINN-en-165.
I include below one example, followed by my question:
Day 0:
Subject ID#: Min-EAD-1975
Text:
Generally OK but woke early with a headache. Sleep not as restful as it usually is at the moment. Might be going into a dip.
Felt particularly stressed/anxious this morning but calmer now.
Mainly bed bound - as I have been for the past few weeks. Can sit up fine, though.
I have posted about it in two different Facebook groups.
Results {"verdict"):
"POSITIVE",
"score": 2,
"comparative": 0.034482758620689655,
"positive": [
"fine",
"restful"
],
"negative": [
"headache"
]
}
Q: What is the "comparative" term: and what does its value of 0.03448 etc
compare to?
Thank you for any reply.
Newer corpus, available here:
https://github.com/fnielsen/afinn/blob/master/afinn/data/AFINN-en-165.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.