Пример #1
0
 def test_match3(self):
     test_case = ('선각자였습니다.',
                  '선/nc+각/nc+자/nc+이/pp+었/ep+습/ef+니/ef+다/ef+./sf')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['nc', 'nc', 'nc', 'ppep', 'ef', 'ef', 'ef', 'sf'],
                      result)
Пример #2
0
 def test_match8(self):
     test_case = ('일컬어진다.', '일/vb+컫/vb+어/ex+지/vx+ㄴ/ef+다/ef+./sf')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['vb', 'vb', 'ex', 'vxef', 'ef', 'sf'], result)
Пример #3
0
 def test_match7(self):
     test_case = ('있으므로', '있/vx+므/ec+로/ec')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['vx', 'mg', 'ec', 'ec'], result)
Пример #4
0
 def test_match6(self):
     test_case = ('웃으면', '웃/vb+면/ef')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['vb', 'mg', 'ef'], result)
Пример #5
0
 def test_match5(self):
     test_case = ('보십시오.', '보/vx+시/ep+ㅂ/ef+시/ef+오/ef+./sf')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['vx', 'epef', 'ef', 'ef', 'sf'], result)
Пример #6
0
 def test_match4(self):
     test_case = ('활용한다든가', '활/na+용/na+하/xv+ㄴ/ec+다/ec+든/ec+가/ec')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['na', 'na', 'xvec', 'ec', 'ec', 'ec'], result)
Пример #7
0
 def test_match2(self):
     test_case = ('끝내!', '끝내/vb+아/ef+!/sf')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['vb', 'vb', 'sf'], result)
Пример #8
0
 def test_match(self):
     test_case = ('썼거니와', '쓰/vb+었/ep+거니와/ec')
     morpheme = Morpheme(test_case[1])
     result = morpheme.match(test_case[0])
     self.assertEqual(['vbep', 'ec', 'ec', 'ec'], result)