Online Korean Morpheme Analyzer with Eunjeon Hannip Project(eunjeon.blogspot.kr). Actually, this is for high school students who do not use the linux.
Project description
Online Korean Morpheme Analyzer with Eunjeon Hannip Project(eunjeon.blogspot.kr).
The function name 'Umorpheme' is an abbreviation of UNIST_morpheme
Actually, this is for high school students who do not use the linux.
== Acknowledgement ==
Ulsan National Institute of Science and Technology
School of Natural Science
Mathematical Sciences
http://math.unist.ac.kr
== CODE ==
# -*- coding: utf8 -*-
import Umorpheme.morpheme as um
from collections import OrderedDict
s = "나는 멸치 볶음 보리 밥을 롯데리아에서 한예슬과 함께 먹었습니다. 롯데리아에는 맥도날드 해피밀이 없습니다." # input sentence
data = um.analyzer(s, '********', "[롯데리아,맥도날드]", 1)
"""
s, securitycode, nounlist, comp
:param s: Input Sentence
:param securitycode: Personal Verification Key (Now, you can receive the key only using email.)
:param nounlist: CUSTOM Noun list
:param comp: Compound noun 1:True, 0:False
:return: term order, data, feature
at UNIST Mathematical Sciences 2014.
"""
temp = {}
for key, value in data.items():
temp[int(key)] = value
data = OrderedDict(sorted(temp.items()))
for i, j in data.iteritems():
print i, j['data'], j['feature']
== RESULT ==
0 나 NP
1 는 JX
2 멸치볶음보리밥 COMP
6 을 JKO
7 롯데리아 CUSTOM
8 에서 JKB
9 한예슬 NNP
10 과 JKB
11 함께 MAG
12 먹 VV
13 었 EP
14 습니다 EF
15 . SF
16 롯데리아 CUSTOM
17 에 JKB
18 는 JX
19 맥도날드 CUSTOM
20 해피밀 COMP
22 이 JKS
23 없 VA
24 습니다 EF
25 . SF
The function name 'Umorpheme' is an abbreviation of UNIST_morpheme
Actually, this is for high school students who do not use the linux.
== Acknowledgement ==
Ulsan National Institute of Science and Technology
School of Natural Science
Mathematical Sciences
http://math.unist.ac.kr
== CODE ==
# -*- coding: utf8 -*-
import Umorpheme.morpheme as um
from collections import OrderedDict
s = "나는 멸치 볶음 보리 밥을 롯데리아에서 한예슬과 함께 먹었습니다. 롯데리아에는 맥도날드 해피밀이 없습니다." # input sentence
data = um.analyzer(s, '********', "[롯데리아,맥도날드]", 1)
"""
s, securitycode, nounlist, comp
:param s: Input Sentence
:param securitycode: Personal Verification Key (Now, you can receive the key only using email.)
:param nounlist: CUSTOM Noun list
:param comp: Compound noun 1:True, 0:False
:return: term order, data, feature
at UNIST Mathematical Sciences 2014.
"""
temp = {}
for key, value in data.items():
temp[int(key)] = value
data = OrderedDict(sorted(temp.items()))
for i, j in data.iteritems():
print i, j['data'], j['feature']
== RESULT ==
0 나 NP
1 는 JX
2 멸치볶음보리밥 COMP
6 을 JKO
7 롯데리아 CUSTOM
8 에서 JKB
9 한예슬 NNP
10 과 JKB
11 함께 MAG
12 먹 VV
13 었 EP
14 습니다 EF
15 . SF
16 롯데리아 CUSTOM
17 에 JKB
18 는 JX
19 맥도날드 CUSTOM
20 해피밀 COMP
22 이 JKS
23 없 VA
24 습니다 EF
25 . SF
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
UMorpheme-1.0.3.zip
(3.7 kB
view hashes)