mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix training
This commit is contained in:
parent
17c9fffb9e
commit
4efd6fb9d6
|
@ -239,8 +239,7 @@ class Language(object):
|
||||||
self.pipeline = self.Defaults.create_pipeline(self)
|
self.pipeline = self.Defaults.create_pipeline(self)
|
||||||
yield Trainer(self, gold_tuples)
|
yield Trainer(self, gold_tuples)
|
||||||
self.end_training()
|
self.end_training()
|
||||||
self.save_to_directory(path, deps=self.parser.cfg, ner=self.entity.cfg,
|
self.save_to_directory(path)
|
||||||
pos=self.tagger.cfg)
|
|
||||||
|
|
||||||
def __init__(self, **overrides):
|
def __init__(self, **overrides):
|
||||||
if 'data_dir' in overrides and 'path' not in overrides:
|
if 'data_dir' in overrides and 'path' not in overrides:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user