Commits

Mikhail Korobov  committed b19ddbf

Fix GH-1

  • Participants
  • Parent commits 0b0328d

Comments (0)

Files changed (3)

File russian_tagsets/dialog2010.py

     'ЧАСТ':           'ADV',
     'ВВОДН':          'ADV',
     'КР_ПРИЛ':        'A',
-    'КР_ПРИЧАСТИЕ':   'V',  #FIXME: ?
+    'КР_ПРИЧАСТИЕ':   'V',  # FIXME: ?
     'ПОСЛ':           '-',
     'ФРАЗ':           '-',
 }
     'мр': 'm',
     'жр': 'f',
     'ср': 'n',
-    'мр-жр': '', #FIXME: ?
+    'мр-жр': '',  # FIXME: ?
 }
 
 CASES = {

File russian_tagsets/ruscorpora.py

     return result
 
 
-
 converters.add('opencorpora-int', 'ruscorpora', from_opencorpora_int)

File russian_tagsets/tests/test_dialog.py

         pos_gold, info_gold = aot.split_tag_raw(gold)
         pos_got, info_got = aot.split_tag(converted)
         assert pos_gold == pos_got
-        assert _gram_info_match(info_gold, info_got)
+        assert _gram_info_match(info_gold, info_got), (converted, gold)
 
     @pytest.mark.parametrize(("word", "dialog_tag", "aot_tag"), TEST_DATA)
     def test_from_aot(self, word, dialog_tag, aot_tag):
         if '[' in dialog_tag:
             dialog_tag = dialog_tag.split('[')[0]
         converted = converters.convert(dialog_tag, 'dialog2010', 'aot')
+        converted = _remove_unsupported(converted)
         gold = _remove_unsupported(aot_tag)
         self.assertTagEqual(converted, gold)