From d489ffb78bfa07acf9e36ca79e25bc9635211eda Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 19 Jul 2018 13:22:25 +0200 Subject: [PATCH] Fix formatting [ci skip] --- examples/training/train_new_entity_type.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/training/train_new_entity_type.py b/examples/training/train_new_entity_type.py index 7e1b19c0e..b2b1c656d 100644 --- a/examples/training/train_new_entity_type.py +++ b/examples/training/train_new_entity_type.py @@ -98,8 +98,6 @@ def main(model=None, new_model_name='animal', output_dir=None, n_iter=20): # existing entity types. optimizer = nlp.entity.create_optimizer() - - # get names of other pipes to disable them during training other_pipes = [pipe for pipe in nlp.pipe_names if pipe != 'ner'] with nlp.disable_pipes(*other_pipes): # only train NER