You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: udapi/block/msf/phrase.py
+66-7Lines changed: 66 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,31 @@ def process_node(self, node):
30
30
'animacy':'PhraseAnimacy',
31
31
'ords':'Phrase'
32
32
}
33
+
34
+
# a dictionary where the key is the lemma of a negative particle and the value is a list of the lemmas of their possible children that have a 'fixed' relation
35
+
# we do not want to include these negative particles in the phrase; these are expressions like "never", etc.
Returns True if the node has any children with the 'fixed' relation and the node's lemma along with the child's lemma are listed in self.negation_fixed.
# there can be a copula with Mood='Cnd' (i. e. in Old East Slavonic), we don't want to count these copula in phrase_ords twice, so there is x.udeprel != 'cop' in aux list
0 commit comments