ptravers / centi Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Add rule described as sentiment propagation whereby compositions in which the polarity of a neutral constituent is overridden by that of a non-neutral constituent ({(+)(N)} → (+); {(-)(N)} → (-))
.
In layman's terms:
neutral + positive = positive
neutral + negative = negative
Situations whereby all sentiment is neutral will be propagated as neutral. Situations whereby sentiment is conflicting will be denoted as mixed (using the mixed constant).
It's a common thing in Python to name pseudo-constants in caps lock to indicate that they are constants. This helps differentiate them from local variables.
Constants are usually defined on a module level and written in all capital letters with underscores separating words. Examples include MAX_OVERFLOW and TOTAL .
Thoughts @ptravers, @alastairgillespie?
The current word to sentiment and word to modifier methods are case senitive. This means "like" is positive (+) but "Like" is neutral (-).
This should be a five second fix.
W.r.t. what is asked in the report.
Add function centi.get_sentiment
in new file sentiment.py
that maps a word to a triple containing the following two values:
As discussed the function will start by assuming all values have no modifier [=]. After basic functionality is implemented I can look at obtaining a corpus of sentiment inverting words.
Creation of constants to allow for more readable code. Inclusive of standard functions.
Det:(Det|DP) >> Head:N
no crime = -1
too much wealth = -1
Labels should contain a head so prehead and posthead rules can be run against the current tree
Add class to hold a node's sentiment, modifier and label. Other properties and methods may be added later.
The paper describes words that can modify the meaning of entire phrases, such a "deficiency" [-]. These words are not just very positive or very negative words.
I have been searching through the citations of the paper as well as online. It seems we will be very limited as:
None the less I think I at least have found a negative dataset I can process to make a used list of negative modifiers.
A SUPR with the negation tag should convert any SUB to the opposite of their current status
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.