by mrmaddog · 13y ago · 0 comments
This is really fun to play with, and I'm surprised how well it can parse the sentiment of sample sentences I threw at it. I've tried a couple random examples (like "I don't know what the artist was smoking, but the song made no sense (though I liked the beat!)") and have not yet gotten a wrong analysis. Even the phrase parsing is pretty spot-on.
As a side note, this is much more interesting than the "sediment" analysis I excepted after skimming the title. (Unfortunately though, the analyzer got this final sentence wrong: http://cl.ly/image/301u1q46263m)
Edit: seems like this system could get significantly more robust with more data. If you look in the comments section, you can see some comments from the professor himself, i.e. "Possibly because the word "buying", only appears once in the entire dataset and it's in a pretty negative context: http://nlp.stanford.edu/sentiment/treebank.html?w=buying"
If you gave it 100,000 phrases, I wouldn't be surprised if it could hit the 95% mark that Socher mentions.
>It is, without question, the worst film ever made. (--) But this comment is in no way meant to be discouraging. (-) Because while The Room is the worst movie ever made it is also the greatest way to spend a blisteringly fast 100 minutes in the dark. (--) Simply put, 'The Room' will change your life. (0)
is parsed as being positive ... I guess the sarcasm detector still needs some work :)
I tried to fool it, but it took quite a bit of effort to contrive a sentence that it got wrong.
The sentence I finally fooled it with:
--> I enjoy clipping my toenails to paying any more attention to this movie.
which it rated as highly positive.
>I'd enjoy clipping my toenails more than paying any more attention to this movie. --> positive
>I'd enjoy clipping my toenails over paying any more attention to this movie. --> negative
If you change "paying" to "giving" it classes that clause as neutral instead of negative, but doesn't change the result.
Still, I'm not even sure if using the preposition "to" in that manner is proper english.