Coder Social home page Coder Social logo

centi's People

Contributors

alastairgillespie avatar kittsville avatar ptravers avatar

Stargazers

 avatar

Watchers

 avatar  avatar

centi's Issues

Add simplest sentiment composition rule

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).

Word to sentiment is case sensitive

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.

Add word to sentiment function

Add function centi.get_sentiment in new file sentiment.py that maps a word to a triple containing the following two values:

  • Sentiment [-1|0|1]: Whether the word is negative, neutral or positive.
  • Modifier [P|N|¬|=]: Whether the word should override with positive/negative, invert the polarity or make no change

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.

Determiners

Det:(Det|DP) >> Head:N

no crime = -1
too much wealth = -1

Create pos modifier corpus

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:

  • Lack of time (many corpora require written permission)
  • Lack of status (many corpora require proof of Phd and to be working at a uni)

None the less I think I at least have found a negative dataset I can process to make a used list of negative modifiers.

Negation Rule

A SUPR with the negation tag should convert any SUB to the opposite of their current status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.