Fix vector loading for ud_train

This commit is contained in:
Matthew Honnibal 2018-03-23 20:30:00 +01:00
parent 044397e269
commit 8902754f0b
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ def load_nlp(corpus, config):
lang = corpus.split('_')[0]
nlp = spacy.blank(lang)
if config.vectors:
nlp.vocab.from_disk(config.vectors / 'vocab')
nlp.vocab.from_disk(Path(config.vectors) / 'vocab')
return nlp
def initialize_pipeline(nlp, docs, golds, config):