예제 #1
0
 def test_modified_role(self):
     self.assertEqual(separate_syntax_part("Instrument<+Plural>"), ("Instrument", "<+Plural>", None))
예제 #2
0
 def test_no_role(self):
     self.assertEqual(separate_syntax_part("NP"), ("NP", None, None))
     self.assertEqual(separate_syntax_part("V"), ("V", None, None))
     self.assertEqual(separate_syntax_part("V<+neutre>"), ("V", "<+neutre>", None))
예제 #3
0
 def test_simple_role(self):
     self.assertEqual(separate_syntax_part("Agent"), ("Agent", None, None))
예제 #4
0
 def test_restructured_role(self):
     self.assertEqual(separate_syntax_part("Theme.poss"), ("Theme", None, "poss"))