-
-
Save joelspadin/3d920f394ef5a1e7058d to your computer and use it in GitHub Desktop.
TwitterSentiment Datagram Specification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'input': { | |
'source': 'twitter', | |
'username': 'poopybutt800', | |
'displayname': 'Poopy Butt', | |
'userid': '5552174', | |
'url': 'https://twitter.com/#!/UnsoundedComic/status/173997828841029632', | |
'userimgurl': 'http://ilovecats.com/cat.jpg', | |
'raw_input': 'today is cold #amirite #thisisatag #blahblah http://twit.ly.poo/9j3j4k32', | |
'text': 'today is cold', | |
'metadata': ['#amirite', '#thisisatag', '#blahblah', 'http://twit.ly.poo/9j3j4k32'] | |
}, | |
/* BEGIN MUSIC GENERATION USES THIS */ | |
'weights': { | |
'happiness': -10,10, /* sum of all scores, face weight added in, etc. */ | |
'excitement': -10,10, /* exclamation points, absolute value of scores, etc. */ | |
'randomness': -10,10 | |
}, | |
/* END MUSIC GENERATION USES THIS */ | |
'sentiment':{ | |
'text': { | |
'total_score': 4, | |
'positive_score': 8, | |
'negative_score': -4 | |
}, | |
'tweet': { | |
'hash_obnoxiousness': 9001, | |
'retweet': boolean | |
} | |
'face': { | |
'smiling': boolean, | |
'confidence': 78 /* % */ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment