Skip to content

Commit 44170a1

Browse files
Add get_expl_type for better naming accuracy
1 parent b80d87e commit 44170a1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

udapi/block/msf/phrase.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ def get_is_reflex(self,node,refl):
127127
if len(refl) == 0:
128128
return node.feats['Reflex']
129129
return 'Yes'
130+
131+
def get_expl_type(self,node, refl):
132+
if node.feats['Voice'] == 'Mid':
133+
return 'Pv'
134+
if not refl:
135+
return ''
136+
if refl[0].deprel == 'expl':
137+
return 'Pv'
138+
return refl[0].deprel.split(':')[1].capitalize()
130139

131140
def is_expl_pass(self,refl):
132141
if len(refl) == 0:

0 commit comments

Comments
 (0)