我正在使用Twitter4j开发应用程序。 我试图用某个hashtag(例如:weather)导入tweets 然后,我想通过搜索关键词将tweets与该hashtag分类。Twitter4j:在标签中搜索关键字
例如: 一些进口的推文的可能是
- OMG, I hate this rain #weather
- This sunshine makes me feel so happy #weather
- Such strange #weather! One moment it rains, the next the sun shines. Confusing!
- Rain makes me sad #weather
- I love the sunshine! #weather
然后,我要归类这些鸣叫为:
- hate, Confusing, sad,... are negative
- happy, love,... are positive
PositiveTweets是:
- This sunshine makes me feel so happy #weather
- I love the sunshine! #weather
NegativeTweets将是:
- OMG, I hate this rain #weather
- Such strange #weather! One moment it rains, the next the sun shines. Confusing!
- Rain makes me sad #weather
所以,NegativeTweets=3
和PositiveTweets=2
谁能帮我这个或点我对类似的东西?