mirror of https://github.com/explosion/spaCy.git
turned PseudoProjectivity into a normal python class
This commit is contained in:
parent
fcaa0ad7ce
commit
72b8df0684
|
@ -59,7 +59,7 @@ def is_nonproj_tree(heads):
|
|||
return any( is_nonproj_arc(word,heads) for word in range(len(heads)) )
|
||||
|
||||
|
||||
cdef class PseudoProjectivity:
|
||||
class PseudoProjectivity:
|
||||
# implements the projectivize/deprojectivize mechanism in Nivre & Nilsson 2005
|
||||
# for doing pseudo-projective parsing
|
||||
# implementation uses the HEAD decoration scheme
|
||||
|
|
Loading…
Reference in New Issue