fe498b3d5e1e29fb756c203d50e217e8f258e561,examples/training/train_new_entity_type.py,,main,#Any#Any#Any#Any#,70
Before Change
losses = {}
gold_parses = get_gold_parses(nlp.make_doc, TRAIN_DATA)
for batch in minibatch(gold_parses, size=3):
docs, golds = zip(*batch)
nlp.update(docs, golds, losses=losses, sgd=optimizer,
drop=0.35)
print(losses)
After Change
with nlp.disable_pipes(*other_pipes): // only train NER
optimizer = nlp.begin_training()
for itn in range(n_iter):
random.shuffle(TRAIN_DATA)
losses = {}
for text, annotations in TRAIN_DATA:
nlp.update([text], [annotations], sgd=optimizer, drop=0.35,
losses=losses)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: explosion/spaCy
Commit Name: fe498b3d5e1e29fb756c203d50e217e8f258e561
Time: 2017-11-06
Author: ines@ines.io
File Name: examples/training/train_new_entity_type.py
Class Name:
Method Name: main
Project Name: stellargraph/stellargraph
Commit Name: 3d6690c5ab1182b2f736b81a3a8448bfaf1eea53
Time: 2019-01-15
Author: habiba.habiba@data61.csiro.au
File Name: stellargraph/data/unsupervised_training_set.py
Class Name: BiasedRandomWalk
Method Name: run
Project Name: stellargraph/stellargraph
Commit Name: ab6e91b1b7415b4fa4576a9a581e4febace79759
Time: 2019-02-26
Author: habiba.habiba@data61.csiro.au
File Name: stellargraph/data/unsupervised_sampler.py
Class Name: UnsupervisedSampler
Method Name: generator