Word analysis of Korean leaders’ speeches


import packages

Screen Shot 2019-07-05 at 10.52.27 AM.png

import text from website

Screen Shot 2019-07-05 at 10.58.25 AM.png

make a list for the data frame

Screen Shot 2019-07-05 at 11.03.28 AM.png

getting into psycholinguistics analysis 

choosing a group of words I applying to both speeches



count the words using regex and str.count

Screen Shot 2019-07-05 at 11.12.27 AM.png

Screen Shot 2019-07-05 at 12.03.49 PM.png

sorting the columns

Screen Shot 2019-07-05 at 11.22.15 AM.png

changing the data frame into machine-friendly reading 

Screen Shot 2019-07-05 at 11.17.27 AM.png


coming up with visualization





Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.