Fix 'noise_level' in train cmd

This commit is contained in:
Matthew Honnibal 2019-08-28 17:55:38 +02:00
parent 782056d117
commit bc5ce49859

View File

@ -240,7 +240,7 @@ def train(
best_score = 0.0
for i in range(n_iter):
train_docs = corpus.train_docs(
nlp, noise_level=noise_level, gold_preproc=gold_preproc, max_length=0
nlp, orth_variant_level=noise_level, gold_preproc=gold_preproc, max_length=0
)
if raw_text:
random.shuffle(raw_text)