예제 #1
0
파일: test_sentence.py 프로젝트: fnl/libfnl
 def testGetPhraseTags(self):
     s = Sentence(TEST_TOKENS)
     self.assertListEqual(list(s.phraseTags()), [
         'NP', 'NP', 'NP', 'NP'
     ])
     self.assertListEqual(list(s.phraseTags(1, 6)), [
         'NP', 'NP'
     ])
예제 #2
0
 def testGetPhraseTags(self):
     s = Sentence(TEST_TOKENS)
     self.assertListEqual(list(s.phraseTags()), ['NP', 'NP', 'NP', 'NP'])
     self.assertListEqual(list(s.phraseTags(1, 6)), ['NP', 'NP'])