mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-09 08:00:34 +03:00
Merge branch 'master' into develop
This commit is contained in:
commit
4339f64128
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -26,6 +26,7 @@ Profile.prof
|
||||||
.Python
|
.Python
|
||||||
.python-version
|
.python-version
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
.pytest_cache
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
.env/
|
.env/
|
||||||
.env*
|
.env*
|
||||||
|
|
|
@ -98,8 +98,6 @@ def main(model=None, new_model_name='animal', output_dir=None, n_iter=20):
|
||||||
# existing entity types.
|
# existing entity types.
|
||||||
optimizer = nlp.entity.create_optimizer()
|
optimizer = nlp.entity.create_optimizer()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# get names of other pipes to disable them during training
|
# get names of other pipes to disable them during training
|
||||||
other_pipes = [pipe for pipe in nlp.pipe_names if pipe != 'ner']
|
other_pipes = [pipe for pipe in nlp.pipe_names if pipe != 'ner']
|
||||||
with nlp.disable_pipes(*other_pipes): # only train NER
|
with nlp.disable_pipes(*other_pipes): # only train NER
|
||||||
|
|
Loading…
Reference in New Issue
Block a user