Upgrade to Pro — share decks privately, control downloads, hide ads and more …

indicoを触ってみた件

 indicoを触ってみた件

2017.02.27 社内勉強会の資料です

One compath

March 02, 2017
Tweet

More Decks by One compath

Other Decks in Technology

Transcript

  1. import indicoio indicoio.config.api_key = ‘APIキーを指定' # 1件指定 indicoio.sentiment_hq(“You are so

    lucky! ”) # 複数指定 indicoio.sentiment_hq([ "Great optimism for future of U.S. business, AND JOBS, with the DOW having an 11th straight record close. Big tax & regulation cuts coming!", "The media has not reported that the National Debt in my first month went down by $12 billion vs a $200 billion increase in Obama first mo.", "Maybe the millions of people who voted to MAKE AMERICA GREAT AGAIN should have their own rally. It would be the biggest of them all!", (省略)])
  2. No. ツイート スコア ポジティブ度 1 Great optimism for future of

    U.S. business, AND JOBS, with the DOW having an 11th straight record close. Big tax & regulation cuts coming! 0.983792901 98% 2 The media has not reported that the National Debt in my first month went down by $12 billion vs a $200 billion increase in Obama first mo. 0.443901718 44% 3 Maybe the millions of people who voted to MAKE AMERICA GREAT AGAIN should have their own rally. It would be the biggest of them all! 0.570272267 57% 4 FAKE NEWS media knowingly doesn't tell the truth. A great danger to our country. The failing nytimes has become a joke. Likewise CNN. Sad! 0.055731252 6% 5 Trump vows to fight 'epidemic' of human trafficking 0.724399865 72% 6 Going to CPAC! 0.591298759 59% 7 find the leakers within the FBI itself. Classified information is being given to media that could have a devastating effect on U.S. FIND NOW 0.589418531 59% 8 The FBI is totally unable to stop the national security 'leakers' that have permeated our government for a long time. They can't even...... 0.42478314 42% 9 Big interview tonight by Henry Kravis at The Business Council of Washington. Looking forward to it! 0.992516995 99% 10 Seven people shot and killed yesterday in Chicago. What is going on there - totally out of control. Chicago needs help! 0.190407142 19% (;・∀・)
  3. import indicoio indicoio.config.api_key = ‘APIキーを指定' indicoio.political([ "Great optimism for future

    of U.S. business, AND JOBS, with the DOW having an 11th straight record close. Big tax & regulation cuts coming!", "The media has not reported that the National Debt in my first month went down by $12 billion vs a $200 billion increase in Obama first mo.", "Maybe the millions of people who voted to MAKE AMERICA GREAT AGAIN should have their own rally. It would be the biggest of them all!", (省略) ])
  4. No. Libertalian Conservative Liberal Green 1 32%(0.321473) 11%(0.107893787) 44%(0.440287799) 13%(0.130346)

    2 54%(0.537469) 19%(0.18802914) 13%(0.131698668) 14%(0.142803) 3 21%(0.213421) 20%(0.201133847) 32%(0.317031652) 27%(0.268413) 4 34%(0.337652) 34%(0.33779484) 14%(0.143676907) 18%(0.180876) 5 10%(0.101398) 9%(0.090198487) 25%(0.251627088) 56%(0.556776) 6 21%(0.213321) 20%(0.202967629) 22%(0.221488133) 36%(0.362223) 7 27%(0.270337) 29%(0.288634598) 18%(0.177471772) 26%(0.263556) 8 69%(0.691256) 15%(0.146481037) 11%(0.108430035) 5%(0.053833) 9 21%(0.205932) 21%(0.213080704) 20%(0.202366784) 38%(0.37862) 10 21%(0.212005) 9%(0.09085957) 36%(0.356357366) 34%(0.340778)
  5. import indicoio indicoio.config.api_key = ‘APIキーを指定' indicoio.emotion( "Great optimism for future

    of U.S. business, AND JOBS, with the DOW having an 11th straight record close. Big tax & regulation cuts coming!", "The media has not reported that the National Debt in my first month went down by $12 billion vs a $200 billion increase in Obama first mo.", "Maybe the millions of people who voted to MAKE AMERICA GREAT AGAIN should have their own rally. It would be the biggest of them all!", (省略) ])
  6. No. Joy(喜び) Surprise(驚き) Anger(怒り) Sadness(悲しみ) Fear(恐れ) 1 57% 2% 4%

    5% 32% 2 25% 27% 8% 25% 15% 3 12% 4% 56% 21% 7% 4 5% 2% 10% 76% 8% 5 11% 1% 44% 24% 19% 6 47% 26% 7% 4% 16% 7 3% 2% 27% 39% 30% 8 6% 3% 52% 27% 12% 9 30% 1% 2% 3% 64% 10 20% 2% 21% 19% 38%
  7. Surprise(驚き) 15% 7% 6% 1% 0% Sad(悲しみ) 48% 18% 35%

    34% 7% Fear(恐れ) 23% 17% 35% 18% 7% Angry(怒り) 5% 9% 10% 30% 39% Happy(幸せ) 2% 30% 4% 4% 5% Neutral (ニュートラル) 7% 20% 10% 13% 42%