PseudoProjectivity --> nonproj

This commit is contained in:
Matthew Honnibal 2017-05-22 05:17:44 -05:00
parent aae97f00e9
commit b45b4aa392
2 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,7 @@ from .syntax.stateclass cimport StateClass
from .gold cimport GoldParse
from .morphology cimport Morphology
from .vocab cimport Vocab
from .syntax.nonproj import PseudoProjectivity
from .syntax import nonproj
from .attrs import ID, LOWER, PREFIX, SUFFIX, SHAPE, TAG, DEP, POS
from ._ml import rebatch, Tok2Vec, flatten, get_col, doc2feats
@ -265,7 +265,7 @@ class NeuralLabeller(NeuralTagger):
pass
def begin_training(self, gold_tuples, pipeline=None):
gold_tuples = PseudoProjectivity.preprocess_training_data(gold_tuples)
gold_tuples = nonproj.preprocess_training_data(gold_tuples)
for raw_text, annots_brackets in gold_tuples:
for annots, brackets in annots_brackets:
ids, words, tags, heads, deps, ents = annots

View File

@ -33,7 +33,6 @@ from ._parse_features cimport CONTEXT_SIZE
from ._parse_features cimport fill_context
from .stateclass cimport StateClass
from ._state cimport StateC
from .nonproj import PseudoProjectivity
from .transition_system import OracleError
from .transition_system cimport TransitionSystem, Transition
from ..structs cimport TokenC