Source

pymorphy2 / pymorphy2 / opencorpora_dict.py

The default branch has multiple heads

Diff from to

File pymorphy2/opencorpora_dict.py

 
         elif elem.tag == 'link':
             link_tuple = (
-                int(elem.get('from')),
-                int(elem.get('to')),
-                int(elem.get('type')),
+                elem.get('from'),
+                elem.get('to'),
+                elem.get('type'),
             )
             links.append(link_tuple)
             _clear(elem)
         return ",".join(g.get('v') for g in elem.findall('g'))
 
     lemma = []
-    lemma_id = int(elem.get('id'))
+    lemma_id = elem.get('id')
 
     if len(elem) == 0: # deleted lemma
         return lemma_id, lemma
     )
 
     def fix_strings(paradigm):
+        """ Replace suffix and prefix with the respective id numbers. """
         para = []
         for suff, tag, pref in paradigm:
             para.append(