naf2cat/variety/naf_to_cat_srl.py
def create_relations(relations, rel_dict, mid):
    '''
        adds relations based on rel_dict output
    '''
    for k, val in sorted(rel_dict.items()):
        relation = etree.SubElement(relations, 'HAS_PARTICIPANT', r_id=str(mid), sem_role=val[1])
        mid += 1
        source = etree.SubElement(relation, 'source', m_id=val[0])
        target = etree.SubElement(relation, 'target', m_id=str(k))

        adds relations based on rel_dict output
    
adds relations based on rel_dict output
adds relations based on rel_dict output
def create_relations(relations, rel_dict, mid):
    for k, val in sorted(rel_dict.items()):
        relation = etree.SubElement(relations, 'HAS_PARTICIPANT', r_id=str(mid), sem_role=val[1])
        mid += 1
        source = etree.SubElement(relation, 'source', m_id=val[0])
        target = etree.SubElement(relation, 'target', m_id=str(k))
def create_relations ( relations , rel_dict , mid ) : for k , val in sorted ( rel_dict . items ( ) ) : relation = etree . SubElement ( relations , 'HAS_PARTICIPANT' , r_id = str ( mid ) , sem_role = val [ 1 ] ) mid += 1 source = etree . SubElement ( relation , 'source' , m_id = val [ 0 ] ) target = etree . SubElement ( relation , 'target' , m_id = str ( k ) )
adds relations based on rel_dict output
adds relations based on rel_dict output
'''
        adds relations based on rel_dict output
    '''
relations
rel_dict
mid