Remove unused update_shared argument

This commit is contained in:
Matthew Honnibal 2017-09-24 05:00:37 -05:00
parent 63bd87508d
commit dc3a623d00

View File

@ -96,8 +96,7 @@ def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
for batch in minibatch(train_docs, size=batch_sizes):
docs, golds = zip(*batch)
nlp.update(docs, golds, sgd=optimizer,
drop=next(dropout_rates), losses=losses,
update_shared=True)
drop=next(dropout_rates), losses=losses)
pbar.update(sum(len(doc) for doc in docs))
with nlp.use_params(optimizer.averages):