[PYTHON] I tried to analyze emotions whether Hinatazaka46 is really a "happy aura"

Oh!

Recently, I'm a good old man and I'm addicted to Hinatazaka46 </ b>. Hinatazaka46 is an idol group whose motto is " Happy Aura </ b>". It's a group of really good kids, and it's worth supporting. .. ..

I had the opportunity to learn Python and wanted to do something, so I decided to analyze the Hinatazaka song that I'm addicted to recently.

Overview Let's use language AI to find out what kind of emotional composition the lyrics of Hinatazaka46's song have.

Development environment macOS Catalina Python3.7.5 COTOHA API

What is COTOHA API? COTOHA is a Japanese native language AI developed by NTT. Since I am a native Japanese speaker, I cannot analyze foreign languages. In addition to the sentiment analysis used this time, it seems that it can also be used for parsing and analysis of user attributes. If you are interested, please refer to this official page .

Sentiment analysis of COTOHA API is categorized into the following 15 emotions.

Rejoice,Get angry,sad,anxiety,Embarrassing,preferable,Dislike,excitement,relief,Surprised,painful,
desire,POSITIVE,NEGATIVE,POSITIVE and NEGATIVE

And it seems that the sentiment score that comes out with a numerical value of 0-1 is more accurate as it gets closer to 1. This time I will look at the lyrics, so the overall score is low.

Let's try it I want to try it right away!

1st single "Kyun" Forecast: Very positive
Execution result { "result": { "sentiment": "Positive", "score": 0.028264567193282873, "emotional_phrase": [ { "form": "Dear", "emotion": "P" }, { "form": "cute", "emotion": "P" }, { "form": "painful", "emotion": "PN" }, { "form": "I'm sure I don't understand", "emotion": "N" }, { "form": "What a mystery", "emotion": "PN" }, { "form": "black", "emotion": "PN" }, { "form": "Moechatte", "emotion": "PN" }, { "form": "I was captivated", "emotion": "P" }, { "form": "casually", "emotion": "PN" }, { "form": "far", "emotion": "PN" }, { "form": "Let's watch over", "emotion": "P" }, { "form": "not aware", "emotion": "N" }, { "form": "extra", "emotion": "N" } ] },

My personal highlight is the rust part

I've been squeaky I've been squeaky I’m just falling love with you Kyu Kyun Kyun dear Kyun Kyun dear You know I can’t stop loving you

It was a matter of what to do, but it seems that Kyun couldn't make a judgment.

2nd single "Doremisorashido" Forecast: Very positive
Execution result { "result": { "sentiment": "Positive", "score": 0.0008150380002646757, "emotional_phrase": [ { "form": "Surely interesting", "emotion": "P" }, { "form": "One-sided feelings", "emotion": "painful" }, { "form": "love", "emotion": "favorable, sad" }, { "form": "in love", "emotion": "favorable, sad" }, { "form": "like", "emotion": "P" }, { "form": "Somehow sad", "emotion": "PN" }, { "form": "Let's have fun", "emotion": "P" }, { "form": "I'm starting to get excited", "emotion": "P" }, { "form": "Be a little embarrassed", "emotion": "PN" }, { "form": "smile", "emotion": "safety" }, { "form": "get hooked", "emotion": "P" }, { "form": "I didn't notice", "emotion": "N" }, { "form": "I was stuck", "emotion": "P" }, { "form": "I was off guard", "emotion": "N" }, { "form": "same", "emotion": "PN" }, { "form": "dramatic", "emotion": "P" }, { "form": "good", "emotion": "P" }, { "form": "Wow Sky", "emotion": "PN" }, { "form": "I'm about to run out", "emotion": "N" }, { "form": "I can't put it out", "emotion": "N" }, { "form": "too much", "emotion": "PN" }, { "form": "Awkward", "emotion": "N" }, { "form": "Brightly", "emotion": "N" }, { "form": "it works", "emotion": "P" }, { "form": "I don't know", "emotion": "N" }, { "form": "Unconsciousness", "emotion": "PN" }, { "form": "always missing", "emotion": "PN" } ] },

Doremisorashido has a very low sentimental score. Lol

3rd single "Can I like you so much? Forecast: A little negative
Execution result { "result": { "sentiment": "Negative", "score": 0.02551750742390602, "emotional_phrase": [ { "form": "love", "emotion": "favorable, safe" }, { "form": "love", "emotion": "P" }, { "form": "hurt", "emotion": "N" }, { "form": "I hate what you do", "emotion": "N" }, { "form": "in love", "emotion": "favorable, sad" }, { "form": "I'm scared", "emotion": "N" }, { "form": "I like it", "emotion": "P" }, { "form": "painful", "emotion": "PN" }, { "form": "tears", "emotion": "anxiety, rejoice, sad, sad" }, { "form": "Hararatto", "emotion": "PN" }, { "form": "anxiety", "emotion": "N" }, { "form": "selfish", "emotion": "N" }, { "form": "When I suddenly notice", "emotion": "P" }, { "form": "Endless", "emotion": "N" }, { "form": "Stopped", "emotion": "PN" }, { "form": "Let's lose", "emotion": "N" }, { "form": "Not enough", "emotion": "PN" }, { "form": "meaningless", "emotion": "N" }, { "form": "so weak", "emotion": "N" }, { "form": "I don't know", "emotion": "N" }, { "form": "clumsy", "emotion": "N" }, { "form": "One-way", "emotion": "PN" }, { "form": "I don't want anything", "emotion": "N" }, { "form": "good", "emotion": "P" }, { "form": "I know it's a miracle", "emotion": "P" } ] }

As expected, it was a little negative.

4th single "Sonnakotonaiyo" Forecast: A little positive
Execution result { "result": { "sentiment": "Positive", "score": 0.012730055376781048, "emotional_phrase": [ { "form": "I don't like it", "emotion": "dislike" }, { "form": "Cute", "emotion": "P" }, { "form": "disappointed", "emotion": "sad" }, { "form": "I don't hate", "emotion": "P" }, { "form": "I like it so much", "emotion": "P" }, { "form": "It's charming", "emotion": "P" }, { "form": "I'm thrilled", "emotion": "P" }, { "form": "Fui", "emotion": "N" }, { "form": "I'm sorry", "emotion": "N" }, { "form": "Why are you depressed?", "emotion": "N" }, { "form": "It really suits you", "emotion": "P" }, { "form": "Understand", "emotion": "P" }, { "form": "It looks like a child", "emotion": "N" }, { "form": "glare", "emotion": "P" }, { "form": "I realized I like it", "emotion": "P" }, { "form": "Beautiful", "emotion": "P" }, { "form": "Keep an eye on", "emotion": "P" } ] }

It was a messy positive song.

Coupling song

Negative song
Promised Egg { "result": { "sentiment": "Negative", "score": 0.023315016692733136, "emotional_phrase": [ { "form": "Give up", "emotion": "N" }, { "form": "doesn't come true", "emotion": "sad" }, { "form": "It's painful", "emotion": "anxiety" }, { "form": "spicy", "emotion": "disgusting, sad" }, { "form": "tears", "emotion": "anxiety, rejoice, sad, sad" }, { "form": "I want to be happy", "emotion": "P" }, { "form": "dreaming", "emotion": "P" }, { "form": "I somehow know the hottest", "emotion": "P" }, { "form": "Can you watch over me", "emotion": "P" }, { "form": "long", "emotion": "PN" }, { "form": "You don't have to try to help", "emotion": "N" }, { "form": "Nestling", "emotion": "PN" }, { "form": "small high", "emotion": "PN" }, { "form": "I can't", "emotion": "N" }, { "form": "throw away", "emotion": "N" }, { "form": "meaningless", "emotion": "N" }, { "form": "I can do my best", "emotion": "P" } ] }
Youth horse { "result": { "sentiment": "Negative", "score": 0.02394637246912981, "emotional_phrase": [ { "form": "Never give up", "emotion": "N" }, { "form": "Unexpected", "emotion": "surprise" }, { "form": "Will it come true?", "emotion": "sad" }, { "form": "passion", "emotion": "excitement" }, { "form": "spicy", "emotion": "N" }, { "form": "disturbed", "emotion": "N" }, { "form": "I'm crazy about myself", "emotion": "favorable" }, { "form": "easy", "emotion": "rejoice" }, { "form": "laughed", "emotion": "PN" }, { "form": "Are you dreaming?", "emotion": "P" }, { "form": "good", "emotion": "P" }, { "form": "I don't know", "emotion": "N" }, { "form": "Reckless", "emotion": "N" }, { "form": "Run around", "emotion": "P" }, { "form": "Mistaken many times", "emotion": "N" }, { "form": "tired", "emotion": "N" }, { "form": "It doesn't make sense to have fun", "emotion": "N" }, { "form": "clumsy", "emotion": "N" }, { "form": "Gamushara ni", "emotion": "PN" }, { "form": "doesn't disappear", "emotion": "P" }, { "form": "I wanted", "emotion": "P" }, { "form": "far", "emotion": "PN" }, { "form": "It was so wide", "emotion": "PN" }, { "form": "Run through", "emotion": "P" }, { "form": "hope", "emotion": "P" } ] }
Fox { "result": { "sentiment": "Negative", "score": 0.012570939691592386, "emotional_phrase": [ { "form": "love", "emotion": "favorable, safe" }, { "form": "dislike", "emotion": "dislike" }, { "form": "doesn't hurt", "emotion": "P" }, { "form": "love", "emotion": "favorable, sad" }, { "form": "I don't like it", "emotion": "N" }, { "form": "It's spicy later", "emotion": "N" }, { "form": "Like other people", "emotion": "N" }, { "form": "pure", "emotion": "PN" }, { "form": "easy", "emotion": "PN" }, { "form": "Trick", "emotion": "N" }, { "form": "It feels good to notice", "emotion": "P" }, { "form": "far", "emotion": "PN" }, { "form": "Don't notice", "emotion": "N" }, { "form": "truth", "emotion": "PN" }, { "form": "hidden", "emotion": "N" }, { "form": "I don't know", "emotion": "N" } ] }

Positive song
Happy Aura { "result": { "sentiment": "Positive", "score": 0.01907015064271493, "emotional_phrase": [ { "form": "love", "emotion": "safe, preferable" }, { "form": "love", "emotion": "painful, preferable" }, { "form": "happy", "emotion": "P" }, { "form": "favorite", "emotion": "P" }, { "form": "Despair", "emotion": "sad" }, { "form": "Is it fun", "emotion": "P" }, { "form": "important", "emotion": "P" }, { "form": "I love you", "emotion": "P" }, { "form": "happy", "emotion": "Relief, rejoice" }, { "form": "Look up", "emotion": "favorable" }, { "form": "wish", "emotion": "P" }, { "form": "I wish I had love", "emotion": "P" }, { "form": "Get excited", "emotion": "P" }, { "form": "sweet scent", "emotion": "P" }, { "form": "Overcome", "emotion": "P" }, { "form": "Understand", "emotion": "P" }, { "form": "hope", "emotion": "P" } ] }
Tokimekisou { "result": { "sentiment": "Positive", "score": 0.0011202599930816672, "emotional_phrase": [ { "form": "faint love", "emotion": "P" }, { "form": "love", "emotion": "favorable, sad" }, { "form": "like", "emotion": "P" }, { "form": "Tokimekisou", "emotion": "P" }, { "form": "Hatto", "emotion": "surprise" }, { "form": "smiling", "emotion": "P" }, { "form": "Shaking", "emotion": "excitement" }, { "form": "It was easy", "emotion": "P" }, { "form": "Unconscious", "emotion": "PN" }, { "form": "For some reason", "emotion": "N" }, { "form": "noticed", "emotion": "P" }, { "form": "special", "emotion": "PN" }, { "form": "I don't care", "emotion": "P" }, { "form": "meaningful", "emotion": "P" }, { "form": "I understand", "emotion": "P" }, { "form": "old", "emotion": "PN" }, { "form": "I misunderstood", "emotion": "N" }, { "form": "I can't see", "emotion": "N" }, { "form": "so soon", "emotion": "P" }, { "form": "gorgeous", "emotion": "P" } ] }
Joyful Love { "result": { "sentiment": "Positive", "score": 0.0001825228142851696, "emotional_phrase": [ { "form": "love", "emotion": "favorable, safe" }, { "form": "pain", "emotion": "sad, anxious" }, { "form": "dislike", "emotion": "dislike" }, { "form": "smile", "emotion": "safety" }, { "form": "Compassion", "emotion": "safe, preferable" }, { "form": "sadness", "emotion": "sad" }, { "form": "hurt", "emotion": "N" }, { "form": "love", "emotion": "favorable, sad" }, { "form": "Happy", "emotion": "P" }, { "form": "disturbing", "emotion": "dislike" }, { "form": "great", "emotion": "P" }, { "form": "It will be fun again", "emotion": "P" }, { "form": "spicy", "emotion": "N" }, { "form": "tears", "emotion": "Sad, sad, happy, anxious" }, { "form": "smiling", "emotion": "P" }, { "form": "warm", "emotion": "P" }, { "form": "Fui", "emotion": "N" }, { "form": "get in the way", "emotion": "N" }, { "form": "Understand", "emotion": "P" }, { "form": "gentleness", "emotion": "P" }, { "form": "gentle", "emotion": "P" }, { "form": "much harder", "emotion": "N" }, { "form": "noticed", "emotion": "P" }, { "form": "I forgot right away", "emotion": "PN" }, { "form": "Is it okay", "emotion": "P" }, { "form": "warmth", "emotion": "P" }, { "form": "strongly", "emotion": "PN" }, { "form": "Invited", "emotion": "P" }, { "form": "beautiful", "emotion": "P" } ] }

Summary I tried the lyrics of various other songs, but there were a lot of positives. I can't say anything from the lyrics of the song, but I would like you to listen to Hinatazaka's happy aura that oozes from the lyrics. Also, Sunday midnight 1: 05 ~ "Let's meet at Hinatazaka" is also insanely interesting, so please take a look!

If I have time in the future, I would like to try Nogizaka and Keyakizaka and compare them.

Recommended Posts