Look at this article and find out what is called COTOHA API. , It looked interesting so I decided to touch it. This time, I used COTOHA API to analyze the negativeness of Nono Morikubo.
It is an API that can easily process natural language and voice. For example, you can perform parsing and speech recognition. Provided by NTT Communications.
One of the idols who appears in The Idolmaster Cinderella Girls, a 14-year-old girl. He is a home under the desk, sometimes running away from the producer, and sometimes working hard as an idol. She usually makes a lot of negative remarks, "I'm ...", but I'm trying to verify how negative it is.
Click here for how to use Please note that there is an upper limit of 1000 calls per day for the free tier.
For example, the initial N card "Ah ... Mmm ... I'm Morikubo ... Ah, yes, Nono Morikubo, but I'm sorry for the producer suddenly, but I'm thinking about quitting as an idol ... Ah, That…" Sentiment analysis of the line with the COTOHA API gives the following results.
{'result': {'sentiment': 'Negative', 'score': 0.48786837208987766, 'emotional_phrase': [{'form': 'I'm sorry', 'emotion': 'N'}]}, 'status': 0, 'message': 'OK'}
Since score
comes out in the range of 0 to 1, this line can be said to be ** moderately negative **. There are three types of emotions: "Positive," "Neutral," and "Negative."
--The lines to be analyzed are the cards installed in Mobage version Idolmaster Cinderella Girls. There are 14 types of lines per card. --Omit the same lines before and after the special training. --The lines are scraped from the website. (Maybe the manual work was faster ...) --Calculate the number, percentage, and average score of each emotion. --Furthermore, let the ratio x average score be ** degree of emotion **. This is because ** the more positive lines and the higher the score, the more positive ** is considered. For example, if all 100% are positive lines and their average score is 1.0, then the degree is (positive, neutral, negative) = (1, 0, 0).
It is listed on Github.
Total number of lines: 410 Only one of these emotions was "Positive / Negative", so that is not included in the calculation.
Emotions | Number of times | Percentage | Average score | Degree |
---|---|---|---|---|
Positive | 135 times | 33% | 0.428 | 0.141 |
Neutral | 215 times | 52% | 0.342 | 0.179 |
Negative | 59 times | 14% | 0.551 | 0.079 |
The average score of Negative is higher than others, but it is less frequent because it is less frequent. It was a little surprising result, but it can be said that she has grown up since the early days. In fact, when sentiment analysis was performed using only the initial cards, the results were as follows.
Total number of lines: 25
Emotions | Number of times | Percentage | Average score | Degree |
---|---|---|---|---|
Positive | 6 times | 24% | 0.358 | 0.086 |
Neutral | 12 times | 48% | 0.380 | 0.183 |
Negative | 7 times | 28% | 0.580 | 0.163 |
There are some parts that cannot be evaluated by the result of one person alone, so I will compare it with other idols. This time, I decided to analyze the emotions of positive passion. Positive Passion is the name of a unit consisting of Mio Honda, Akane Hino, and Aiko Takamori. If they are positive and passionate, the results will surely change.
Total number of lines: 476
Emotions | Number of times | Percentage | Average score | Degree |
---|---|---|---|---|
Positive | 199 times | 41.8% | 0.462 | 0.193 |
Neutral | 265 times | 55.7% | 0.421 | 0.234 |
Negative | 12 times | 2.5% | 0.442 | 0.011 |
Total number of lines: 409
Emotions | Number of times | Percentage | Average score | Degree |
---|---|---|---|---|
Positive | 154 times | 37.7% | 0.425 | 0.160 |
Neutral | 228 times | 55.7% | 0.438 | 0.244 |
Negative | 27 times | 6.6% | 0.394 | 0.026 |
Total number of lines: 457 Only one of these emotions was "Positive / Negative", so that is not included in the calculation.
Emotions | Number of times | Percentage | Average score | Degree |
---|---|---|---|---|
Positive | 263 times | 57.5% | 0.464 | 0.267 |
Neutral | 172 times | 37.6% | 0.399 | 0.150 |
Negative | 21 times | 4.6% | 0.478 | 0.022 |
Compared to the previous time, all three had lower negatives and higher positives. Even if you simply look at the number of times, you can see that there are few negative remarks. Sasuga Ginza.
The following is a summary of the degree.
name | Positive degree | Neutral degree | Negative degree |
---|---|---|---|
Nono Morikubo | 0.141 | 0.179 | 0.079 |
Honda Mio | 0.193 | 0.234 | 0.011 |
Akane Hino | 0.160 | 0.244 | 0.026 |
Aiko Takamori | 0.267 | 0.150 | 0.022 |
When you look at it like this, it feels like there is a visible difference. It was surprising that Aiko had the highest degree of positiveness ... Well, it may be that the target lines were limited.
It would be interesting to analyze the data obtained this time using other methods, so I would like to try it again if I have the opportunity.
Nono Morikubo was negative after all, but he's growing better than he used to be!
Recommended Posts