From c729d72fc6d31af4d6a2567cc705c78d42bdb54e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 15 Apr 2017 16:11:06 +0200 Subject: [PATCH] Add new example for training new entity types --- examples/training/train_new_entity_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/training/train_new_entity_type.py b/examples/training/train_new_entity_type.py index 4e9b7c8a8..af98ef583 100644 --- a/examples/training/train_new_entity_type.py +++ b/examples/training/train_new_entity_type.py @@ -29,8 +29,8 @@ def train_ner(nlp, train_data, output_dir): doc = nlp.make_doc(raw_text) nlp.tagger(doc) loss = nlp.entity.update(doc, gold) + nlp.end_training() nlp.save_to_directory(output_dir) - #nlp.end_training(output_dir) def main(model_name, output_directory=None):