mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
PseudoProjectivity->nonproj
This commit is contained in:
parent
70a8c531cd
commit
5d59e74cf6
|
@ -97,7 +97,6 @@ def preprocess_training_data(gold_tuples, label_freq_cutoff=30):
|
||||||
return preprocessed
|
return preprocessed
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def projectivize(heads, labels):
|
def projectivize(heads, labels):
|
||||||
# use the algorithm by Nivre & Nilsson 2005
|
# use the algorithm by Nivre & Nilsson 2005
|
||||||
# assumes heads to be a proper tree, i.e. connected and cycle-free
|
# assumes heads to be a proper tree, i.e. connected and cycle-free
|
||||||
|
|
Loading…
Reference in New Issue
Block a user