Merge branch 'master' into develop

This commit is contained in:
ines 2018-07-19 16:15:03 +02:00
commit 4339f64128
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -26,6 +26,7 @@ Profile.prof
.Python
.python-version
__pycache__/
.pytest_cache
*.py[cod]
.env/
.env*

View File

@ -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