Skip to content

Instantly share code, notes, and snippets.

@bowbowbow
Created December 2, 2018 14:31
Show Gist options
  • Save bowbowbow/ac73a5e01f91a47600816d590504a2c1 to your computer and use it in GitHub Desktop.
Save bowbowbow/ac73a5e01f91a47600816d590504a2c1 to your computer and use it in GitHub Desktop.
import json, re, datetime
import pandas as pd
import numpy as np
import nltk
from nltk.stem.snowball import SnowballStemmer
stopwords = nltk.corpus.stopwords.words('english')
stemmer = SnowballStemmer("english")
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.pipeline import FeatureUnion, Pipeline
from sklearn.preprocessing import OneHotEncoder, LabelEncoder
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics import pairwise_distances_argmin_min, pairwise
def data_load():
frames = []
for i in range(0, 8):
with open('./data/koreaherald_1517_{}.json'.format(i), 'r') as f:
data = json.load(f)
data['year'] = dict()
data['timestamp'] = dict()
for doc_id in data[' body']:
time = datetime.datetime.strptime(data[' time'][doc_id], '%Y-%m-%d %H:%M:%S')
data['year'][doc_id] = time.year
data['timestamp'][doc_id] = (time.month * 30 + time.day) / 100.0
df = pd.DataFrame.from_dict(data)
# header: [' author' ' body' ' description' ' section' ' time' 'title']
# print(df.columns.values)
frames.append(df)
return pd.concat(frames)
def chunking(text):
chunks = []
parser = nltk.RegexpParser("NP: {<DT>?<JJ>?<NN.*>*}")
for sent in nltk.sent_tokenize(text):
words = [word for word in nltk.word_tokenize(sent) if word.isalpha()]
# words = [word for word in words if word not in stopwords]
tags = nltk.pos_tag(words)
tree = parser.parse(tags)
leaves = [s.leaves() for s in tree.subtrees() if s.label() == "NP"]
for leave in leaves:
chunk = [word[0] for word in leave]
chunks.append('_'.join(chunk))
return chunks
def get_proppers(text):
propernouns = []
for sent in nltk.sent_tokenize(text):
words = [word for word in nltk.word_tokenize(sent) if word.isalpha()]
tags = nltk.pos_tag(words)
propernouns += [word for word, pos in tags if pos == 'NNP' or pos == 'NNPS']
return propernouns
def tokenize_and_stem(text):
stems = []
for sent in nltk.sent_tokenize(text):
words = [word for word in nltk.word_tokenize(sent) if word.isalpha()]
words = [word for word in words if word not in stopwords]
for word in words: stems.append(stemmer.stem(word))
return stems
def clustering(year):
df = data_load()
df = df[df.year == year]
# print(df[:5].to_string())
encoder = LabelEncoder()
encoder.fit(df[' author'])
df[' author'] = encoder.transform(df[' author'])
encoder.fit(df[' section'])
df[' section'] = encoder.transform(df[' section'])
class TextSelector(BaseEstimator, TransformerMixin):
def __init__(self, key):
self.key = key
def fit(self, x, y=None):
return self
def transform(self, data_dict):
return data_dict[self.key]
class NumberSelector(BaseEstimator, TransformerMixin):
def __init__(self, key):
self.key = key
def fit(self, x, y=None):
return self
def transform(self, data_dict):
return data_dict[[self.key]]
vectorizer = FeatureUnion(
transformer_list=[
('proppers', Pipeline([
('selector', TextSelector(key=' body')),
('tfidf', TfidfVectorizer(tokenizer=get_proppers, ngram_range=(1, 2)))
])),
('title', Pipeline([
('selector', TextSelector(key='title')),
('tfidf', TfidfVectorizer(min_df=0.1, tokenizer=tokenize_and_stem, ngram_range=(1, 2)))
])),
('body', Pipeline([
('selector', TextSelector(key=' body')),
('tfidf', TfidfVectorizer(min_df=0.2, tokenizer=tokenize_and_stem, ngram_range=(1, 2)))
])),
('author', Pipeline([
('selector', NumberSelector(key=' author')),
('onehot', OneHotEncoder(categories='auto'))
])),
('section', Pipeline([
('selector', NumberSelector(key=' section')),
('onehot', OneHotEncoder(categories='auto'))
])),
('timestamp', Pipeline([
('selector', NumberSelector(key='timestamp')),
])),
],
# weight components in FeatureUnion
transformer_weights={
'section': 3.0,
'proppers': 2.0,
'title': 1.0,
'body': 1.0,
'timestamp': 0.5,
'author': 0.3,
},
)
X = vectorizer.fit_transform(df)
true_k = 10
from sklearn.cluster import KMeans
model = KMeans(n_clusters=true_k, init='k-means++', max_iter=100, n_init=1)
model.fit(X)
df['cluster'] = model.labels_
closest, _ = pairwise_distances_argmin_min(model.cluster_centers_, X)
print('closest :', closest)
for c in range(true_k):
print('cluster {}'.format(c))
dis = model.transform(X)[:, c]
dis = [(i, dis[i]) for i in range(len(dis))]
dis = sorted(dis, key=lambda x: x[1])
for item in dis[:5]:
doc_id = item[0]
print(doc_id, ', title :', df.iloc[doc_id]['title'])
# print(chunking(doc[' body']))
if __name__ == "__main__":
clustering(year=2017)
@bowbowbow
Copy link
Author

bowbowbow commented Dec 2, 2018

2017
cluster 0
6991 , title : Nerve agent VX used in Kim Jong-nam murder, Malaysia says
7062 , title : North Korea diplomat wanted over Kim killing: Malaysia
7172 , title : North Korea, Malaysia tussle over corpse; 4th suspect nabbed
7168 , title : Investigators find evidence linking Pyongyang to murder of Kim Jong-nam: reports
7013 , title : Probe into Kim Jong-nam's death a 'conspiracy,' N.Korea claims
cluster 1
6108 , title : [Graphic News] Salvage operation procedure
6219 , title : [Graphic News] Former President Park Geun-hye‘s grilling by the prosecution
6603 , title : [Graphic News] Four possible scenarios
3632 , title : [URGENT] Choi Soon-sil gets 3-year prison term for college entrance irregularities
8389 , title : [From the Scene] 3 years on, still no closure on Sewol tragedy
cluster 2
2040 , title : Talk of tactical nuclear weapons resurfaces
3866 , title : Allies to conduct military drills similar to last year‘s: military
5344 , title : Moon Jae-in urges ‘complete’ overhaul of military
3422 , title : S. Korea, US begin military drills amid N. Korea's threats
4217 , title : Minister to clarify Seoul's position on THAAD in talks with Mattis
cluster 3
5145 , title : [Graphic News] Election in numbers
4850 , title : Moon names Democratic Party veteran as political adviser
4774 , title : [News Focus] Jobs plan could test Moon’s ties with parliament
5032 , title : [Newsmaker] Daunting tasks await new president
4604 , title : Moon names liberal lawmakers as special envoy to Ecuador
cluster 4
6334 , title : Tillerson to visit DMZ as part of Korean tour
8940 , title : Russian envoy calls for restraint amid tensions on Korean Peninsula
6180 , title : Trump calls N. Korean situation 'disgraceful,' 'not smart'
8154 , title : Trump's 'armada' gaffe stains his commitment to alliance
4769 , title : S. Korea, US agree to seek new 'bold' ways to denuclearize N. Korea
cluster 5
8474 , title : Hwang urges Japan to show sincere remorse over shared history
8785 , title : Recalled Japanese envoy to return to Seoul
8601 , title : Japan envoy meets vice foreign minister amid girl statue controversy
8670 , title : Pence to visit Seoul from April 16-18
4805 , title : White House delegation visits Seoul for summit preparations
cluster 6
5498 , title : S. Korea hopes NK's restraint from provocations could lead to dialogue
3232 , title : S. Korea likely to propose talks to NK following Moon's peace gesture
3456 , title : S. Korea urges NK to end provocations as allies start military drills
5890 , title : NK dismisses S. Korea's wish for better ties as 'nonsense' amid sanctions
5617 , title : S. Korea urges NK to end provocations, accept dialogue offer
cluster 7
3349 , title : Moon, Xi likely to meet in Germany this week to discuss THAAD controversy
2069 , title : Korean leader vows increased cooperation, exchanges with Latin American countries
1728 , title : PM meets with Bahrain's parliamentary speaker
1750 , title : ‘Sudan welcomes investments, technology transfers amid easing sanctions’
3397 , title : Moon's efforts for inter-Korean ties to gain pace with Trump's support
cluster 8
2456 , title : [Graphic News] A day in Seoul in numbers
555 , title : Top 10 national news stories
3632 , title : [URGENT] Choi Soon-sil gets 3-year prison term for college entrance irregularities
339 , title : Human rights watchdog sees little need to improve Park's prison cell
840 , title : Authorities deny allegation of mistreatment of jailed ex-president
cluster 9
8898 , title : Education Ministry moves to shield kids from air pollution
6759 , title : Over 80 schools to use state history textbooks as supplementary material
3642 , title : Foreign teachers left stranded by crackdown on visa violations
5144 , title : ‘Smart classroom’ is the future of school
5485 , title : [Eye Interview] Education reformer aims to tackle elitism in schools

2016
cluster 0
4281 , title : Ruling party reeling from election rout
3346 , title : Saenuri bigwigs to meet on feud
3041 , title : National Assembly gets off to rough start
3546 , title : Oppositions ready for talks with Park
5607 , title : Saenuri readmits defectors
cluster 1
5171 , title : Labor union leader gets five-year jail term for violent rallies
3950 , title : Elderly woman has leg amputated after bus door mishap
5201 , title : School meal complaints grow
5137 , title : [FEATURE] Sanitary pads controversy brings light on women's poverty, reproductive health
2978 , title : Seoul population falls under 10 mln
cluster 2
6675 , title : FM Yun calls for all-out efforts to resolve N.K. nuke issue
4463 , title : [NEWS FOCUS] Observers split on strategy against N.K.
3876 , title : N.K.'s missile tests aimed at highlighting accomplishments before party congress: Seoul
5475 , title : N.K. nuclear envoy says six-party talks are 'dead'
6577 , title : Seoul to unveil its own sanctions on Pyongyang this week
cluster 3
3064 , title : U.K. celebrates Queen’s 90th birthday
5728 , title : [HERALD INTERVIEW] ‘Long-term engagement key to investing in Iran’
2877 , title : Foreign Minister Yun visits Cuba to forge ties, pressure N.K.
5283 , title : Argentina welcomes investment at independence celebration
5573 , title : [NEWS FOCUS] Seoul wary of diplomatic spillover from crackdown on illegal Chinese fishing
cluster 4
3884 , title : THAAD deployment decided as part of 'self-defense' efforts: foreign minister
3939 , title : Park strongly defends THAAD deployment decision
4429 , title : Pentagon: THAAD won't be directed toward any third nations
5842 , title : THAAD to 'dramatically' enhance capacity to counter NK threat: defense chief
1276 , title : Ruling party hawks call for nuclear subs to counter NK SLBM
cluster 5
3934 , title : San Francisco's Education Board expresses support for teaching students about 'comfort women'
3323 , title : Asian former sex slaves adopt resolution denouncing Seoul-Tokyo deal
3171 , title : Obama urges Vietnam youth to tackle climate change
3738 , title : Deputy FM to visit Laos for ASEAN meetings
3424 , title : Republican lawmaker calls for Trump to refine Asian policy
cluster 6
3265 , title : N.K. nukes prompt Seoul to further tighten sanctions on Pyongyang
3940 , title : N.K. leader to use party congress to cement his power: experts
4050 , title : N. Korea will strive to break up int'l sanction regime: observer
5467 , title : White House vows to pursue additional pressure on N. Korea
5553 , title : Korea rebukes N.K. for threatening nuclear attacks
cluster 7
1559 , title : Debate soars over Park’s attack on ‘Hell Joseon’
1663 , title : [Newsmaker] Rise of Park ally to reopen Saenuri divide
4628 , title : People’s Party pushes to hold hearing on censorship scandal
5061 , title : [NEWS FOCUS] Key pro-Park figure takes a back seat amid factional feud
5134 , title : Park to lunch with all Saenuri lawmakers
cluster 8
3454 , title : Jeju global campus official eyes profit turnaround in 2018
5249 , title : Australia invites N.K. defectors for English-learning program
3633 , title : Level of education to be deleted from public officials' personnel records
2939 , title : Ministry to increase support for non-English langauge teaching
4596 , title : [HERALD INTERVIEW] Balanced education helps liberal arts students thrive
cluster 9
2925 , title : Clinton underscores 'power of allies,' warns of dangers of Trump
3933 , title : Ex-U.S. diplomat says Korea-Japan deal on ‘comfort women’ reached out of ‘self-interest’
1916 , title : Trump: U.S. could end up in 'massive war' while protecting
3059 , title : Trump renews calls for allies to pay up for U.S. protection
3023 , title : U.S. Republican senator reaffirms strong Seoul-Washington alliance: Seoul

2015
cluster 0
2403 , title : 10 S. Koreans, 1 Chinese killed in China bus plunge
2412 , title : S. Korean home affairs minister apologizes for bus accident in China
6701 , title : S. Korea denounces Japan for politicizing UNESCO
4588 , title : S. Korea against Japan's UNESCO drive for slave labor sites
2411 , title : 'Comfort woman' denounces Abe gov't in D.C. protest
cluster 1
3213 , title : Georgia celebrates national independence
2506 , title : Danish ambassador discusses N.K. visit
3031 , title : Italian ambassador hosts last reception
3033 , title : Investing in Philippines opens door to ASEAN
2096 , title : Danish Ambassador highlights green growth alliance with Korea
cluster 2
2652 , title : S. Korea reports 2 more MERS deaths with 3 new cases
2764 , title : S. Korea reports additional death from MERS, 8 new cases
2959 , title : S. Korea reports two more MERS deaths, 13 new cases
2623 , title : S. Korea reports 3 new MERS cases with no additional deaths
2729 , title : S. Korea reports 3 more deaths from MERS, 3 new cases
cluster 3
2024 , title : S. Korean nuclear envoy in Beijing for talks on N. Korea
2382 , title : Koreas to have talks on ex-first lady's NK visit next week
2586 , title : S. Korea ready to support N. Korea over drought: Seoul official
2335 , title : Ex-first lady to visit N. Korea in early August
2849 , title : S. Korea urges N. Korea to agree to talks
cluster 4
2922 , title : Ruling party to push for vote on PM nominee
2781 , title : Ruling party gears up for unilateral approval of new PM
2798 , title : Rival parties agree on controversial Assembly bill
3311 , title : Opposition party slams ruling bloc's plan to fast-track approval of new PM
2147 , title : Park meets with new leaders of ruling party
cluster 5
2671 , title : FM Yun leaves for Japan to attend fence-mending talks
2948 , title : S. Korea, Japan to meet over wartime sex slaves
2920 , title : S. Korea, Japan in talks over joint anniversary event
3016 , title : S. Korea, Japan to hold talks on world heritage
2753 , title : FM Yun set for fence-mending trip to Japan
cluster 6
6224 , title : [Graphic News] Comparison of two Koreas’ military strength
1806 , title : S. Korea, Japan to hold director-level defense talks this week
2612 , title : U.S. strategic commander vows strong deterrence against N. Korea
2311 , title : Price, favorable terms to be basics of S. Korea's defense
3159 , title : S. Korea, U.S. devise principles against N.K. missiles
cluster 7
3186 , title : [Herald Interview] ‘High payoffs both driving factor, risk in education’
2313 , title : Seoul eyes ‘all-foreign’ college majors
1880 , title : Job-focused education policy stirs controversy
2627 , title : Four elite schools fail assessments
3185 , title : [Herald Interview] Norway stresses state-funded education
cluster 8
3314 , title : China, Japan envoys discuss ways to reopen 6-party talks
2436 , title : China invites Koreas' militaries to parade marking end of WWII
2467 , title : Korean sexual slavery victim urges Obama to guide Abe onto right path
4610 , title : S. Korea, China, Japan hold talks for 3-way FTA
3334 , title : S. Korean nuclear envoy due in Beijing for talks on N. Korea
cluster 9
522 , title : Korea, U.S., Japan to hold trilateral meeting of nuclear envoys
450 , title : Park, leaders of Visegrad Group urge N. Korea to halt nuclear program
449 , title : Korea, U.S., Japan agree to work together to deter SLBM, other N.K. provocations
468 , title : Improved Pyongyang-Beijing ties to help resume six-way talks: Hua
474 , title : Korea, Czech Republic to boost nuclear energy cooperation

@bowbowbow
Copy link
Author

bowbowbow commented Dec 2, 2018

fix max_df

2017
cluster 0
8447 , title : NK 84% likely to conduct nuclear or missile tests in next 30 days: CSIS
7921 , title : UN Security Council unanimously adopts statement condemning NK missile launch
8599 , title : Rocket engine test puts NK closer to launching ICBM, satellite: report
8577 , title : NK vows to take 'toughest' military actions as US sends aircraft carrier
8600 , title : N. Korea may conduct nuke test before launch of new gov't in Seoul: expert
cluster 1
6219 , title : [Graphic News] Former President Park Geun-hye‘s grilling by the prosecution
6108 , title : [Graphic News] Salvage operation procedure
6603 , title : [Graphic News] Four possible scenarios
9109 , title : 70% of Korea’s fine dust particles come from China: study
8540 , title : Sewol ferry moved on land, search for missing victims begins
cluster 2
5145 , title : [Graphic News] Election in numbers
7843 , title : Presidential front-runner Moon widens gap with runner-up: poll
8282 , title : Hwang calls for national unity amid NK threats
4521 , title : Cheong Wa Dae names two deputy advisers for national security
8350 , title : Ahn gives up parliamentary seat ahead of presidential election
cluster 3
2456 , title : [Graphic News] A day in Seoul in numbers
555 , title : Top 10 national news stories
459 , title : Prosecutors seek arrest warrants for two Park aides over bribery
886 , title : Former NIS official arrested in probe of political interference
839 , title : Prosecution requests arrest warrants for 3 ex-NIS officials
cluster 4
1435 , title : Top diplomats of S. Korea, US discuss Kim Jong-un's threat of highest-level action
1043 , title : Senior diplomats of S. Korea, US to discuss NK nuke issue
1007 , title : Senior diplomats of S. Korea, US to discuss NK nuke issue
1450 , title : Kim Jong-un warns Trump will pay dearly for threat
1598 , title : Tillerson: US seeks peaceful solution to NK issue
cluster 5
3043 , title : Moon's approval rating slightly slips but still at record high level
5437 , title : Moon's approval rating slips to 72.5%
3230 , title : Moon's rating further gains amid growing N. Korea tension
3827 , title : Conservative parties quicken preparations for leadership elections
3670 , title : Parties agree to normalize parliamentary sessions
cluster 6
4117 , title : Korea to take more responsibility for dementia patients
4218 , title : 4 in 10 older workers want post-retirement jobs: poll
4347 , title : Number of China-bound travelers drops 42% on THAAD spat: data
4428 , title : Suspected vessel hijacking false alarm, crew confirmed safe
4303 , title : Poll shows 60% of Koreans negative about China's influence
cluster 7
7810 , title : Nuclear envoys of S. Korea, US, Japan to meet next week to discuss NK issue
8415 , title : Top diplomats of Korea and Angola to meet next week to discuss cooperation
8225 , title : S. Korea's top diplomat to attend UNSC meeting on NK issue
8076 , title : Top diplomats of Korea, Tanzania to hold talks in Seoul next week
8245 , title : Vice unification minister meets with Japan's top envoy over NK issue
cluster 8
7812 , title : [Graphic News] US forces in South Korea
8084 , title : [Graphic News] Military strength of the two Koreas
5926 , title : US naval commander to get Korean name
3669 , title : Gen. Brooks reaffirms S. Korea-U.S. alliance will not waver in future
4378 , title : New S. Korean Air Force chief stresses readiness to counter NK threats
cluster 9
5145 , title : [Graphic News] Election in numbers
3980 , title : Korea calls for Japan to be careful in making comments on comfort women issue
3551 , title : Japanese diplomat under fire for calling sexual slavery victims 'paid prostitutes'
3523 , title : Korea denounces Japan diplomat's disparaging remarks on sex slavery victims
3939 , title : Korea concludes sex slavery victims still have individual rights to sue Japan despite gov't deal

2016
cluster 0
1840 , title : Hungry N. Korean soldiers committing various crimes: report
5621 , title : Bulgaria reaffirms support for denuclearization, vows to fully implement N. Korea sanctions
534 , title : NK resumes encrypted numbers broadcast after 2-week hiatus
293 , title : NK resumes encrypted numbers broadcast after 9-day break
479 , title : NK spy agency official defected to S. Korea last year: source
cluster 1
5171 , title : Labor union leader gets five-year jail term for violent rallies
4901 , title : Korea to toughen monitoring on Zika virus
4927 , title : Korea reports first Zika virus-infected patient
4679 , title : Court rules ban on voluntary prostitution constitutional
4712 , title : [EXCLUSIVE] Korea’s justice system fails foreign victims of rape
cluster 2
3173 , title : Defense ministry counters health, diplomatic concerns over THAAD deployment
5752 , title : Defense ministry demands 5.3% increase in defense budget for 2017
3295 , title : Korea to announce site for deploying THAAD: defense ministry
5626 , title : Senate defense budget bill fails to include amendment calling for THAAD deployment in S. Korea
3939 , title : Park strongly defends THAAD deployment decision
cluster 3
5693 , title : U.N. chief remains ahead of other presidential hopefuls: survey
101 , title : ‘Park should own up’
2368 , title : [Graphic News] What Park should do?
1988 , title : Cheong Wa Dae probes aide’s scandal
1760 , title : Saenuri starts leadership vote amid factional divide
cluster 4
5621 , title : Bulgaria reaffirms support for denuclearization, vows to fully implement N. Korea sanctions
1840 , title : Hungry N. Korean soldiers committing various crimes: report
5498 , title : U.S. 'strongly condemns' N. Korea's missile launches
5276 , title : N.K. leader given new state title at key parliamentary meeting
5500 , title : S. Korea condemns N. Korea's launches of 2 mid-range missiles
cluster 5
5728 , title : [HERALD INTERVIEW] ‘Long-term engagement key to investing in Iran’
5719 , title : 'Gateway to Korea' opens for EU firms
3063 , title : Azerbaijan celebrates independence, ties with Korea
5560 , title : Azerbaijan, Korea to cooperate on infrastructure, energy
5718 , title : ASEAN promotes ecotourism at seminar
cluster 6
5621 , title : Bulgaria reaffirms support for denuclearization, vows to fully implement N. Korea sanctions
1840 , title : Hungry N. Korean soldiers committing various crimes: report
7330 , title : N.K. leader orders more nuke tests, readiness for nuclear attacks
6582 , title : South Korea to unveil its own sanctions on North Korea this week
7016 , title : North Korea must pay 'necessary price' for nuke test, rocket launch: China FM
cluster 7
5731 , title : Chinese fishing boats leave neutral waters after crackdown
3059 , title : Trump renews calls for allies to pay up for U.S. protection
3424 , title : Republican lawmaker calls for Trump to refine Asian policy
3058 , title : Trump raps Obama for visiting Hiroshima visit without noting Japan's aggression
5867 , title : Financial institutions should choose either doing business with North Korea or U.S.: Royce
cluster 8
4251 , title : Only permanent residents to be able to apply for naturalization in S. Korea
2093 , title : Court again rejects Korean A-bomb victims' suit against gov't
3602 , title : Korea to control e-cigarettes in antismoking policy
3632 , title : No. of visitors on Jeju tops 5 mln
2118 , title : Survey shows signs of improving S. Korea-Japan relations
cluster 9
5171 , title : Labor union leader gets five-year jail term for violent rallies
699 , title : Senior prosecutor arrested over bribery allegations
696 , title : SNU professor gets 2-year jail term for fabricating Oxy reports
739 , title : Man gets one-year term for fake threat to blow up Incheon airport
966 , title : 8 Chinese tourists arrested for assaulting Korean restaurant owner

2015
cluster 0
2467 , title : Korean sexual slavery victim urges Obama to guide Abe onto right path
2386 , title : U.S. official due in Seoul over missile defense
2693 , title : World War II sex slave to sue Japan in U.S. court
2779 , title : S. Korea urges closer regional ties on energy security
2436 , title : China invites Koreas' militaries to parade marking end of WWII
cluster 1
4079 , title : All but one MERS-related patients move out of intensive care
1785 , title : S. Korea reports no additional MERS cases for 30th
4016 , title : MERS victims file lawsuits against gov't, hospitals
3343 , title : S. Korea‘s last MERS patient tests negative
3650 , title : Child abuse claims 12 lives, over 5,000 victims in H1: report
cluster 2
7136 , title : Opposition party unveils own proposal for pension reform
4397 , title : Park calls for compromise on labor, pension reforms
6670 , title : Ruling party chief willing to cooperate with corruption scandal probe
6991 , title : Park renews calls for reform of labor market, civil service pensions
6692 , title : Park orders thorough probe into bribery scandal
cluster 3
1540 , title : Exhibition to showcase Danish green solutions
1398 , title : Exhibition shows Danish green tech
1541 , title : Pakistan marks independence with eye on global affairs
1395 , title : Czech Republic, Korea fete silver jubilee through architecture
1397 , title : ASEAN, Korean students plant seeds of sustainable forestry
cluster 4
4451 , title : Ex-Navy chief arrested over alleged graft
4667 , title : Prosecutors raid POSCO E&C over alleged slush funds
7116 , title : Actor Lee Byung-hun's blackmailers get suspended jail terms
4392 , title : Families of ferry disaster victims call for vessel recovery
4563 , title : Subcontractors of POSCO E&C raided in slush fund probe
cluster 5
6224 , title : [Graphic News] Comparison of two Koreas’ military strength
2442 , title : U.S. Army holds public hearings on proposal to permanently deploy THAAD to Guam
2311 , title : Price, favorable terms to be basics of S. Korea's defense
2315 , title : Military officer accused of leaking military info to China
2152 , title : U.S. approves foreign military sale for S. Korea's KF-16 upgrade project for $2.5 bln
cluster 6
2948 , title : S. Korea, Japan to meet over wartime sex slaves
3004 , title : Japanese scholars urge Abe to offer apology for history
2753 , title : FM Yun set for fence-mending trip to Japan
3016 , title : S. Korea, Japan to hold talks on world heritage
2619 , title : Any solution to sex slave issue should satisfy victims: FM Yun
cluster 7
2952 , title : MERS feared to dent consumption, growth: foreign investors
2971 , title : Supporters of sexual minorities hold event in Seoul
3111 , title : Experts say S. Korea can contain MERS with quarantine
3096 , title : S. Korea forms MERS task force on national image
3472 , title : Unemployment among youth with no job experience hits 12-year high
cluster 8
2439 , title : Drought-hit North Korea seeks aid from ally Iran
2516 , title : N. Korea slams S. Korea over U.N. human rights office
2591 , title : U.S. hails opening of U.N. human rights office in Seoul
2797 , title : China urges easing of tension as N. Korea tests missiles
2732 , title : N.K. nuclear reactor running at low levels or not at all: 38 North
cluster 9
1222 , title : Park's approval rating edges down amid history textbook row
1186 , title : Park's approval rating edges down amid history textbook row
3770 , title : Park's approval rating edges down amid factional feud
2777 , title : Park's approval rating edges up as factional feud subsides
1356 , title : Park's approval rating edges up after U.S. visit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment