From 8902754f0b24a11188facfe8599fd1d25dcb9779 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 23 Mar 2018 20:30:00 +0100 Subject: [PATCH] Fix vector loading for ud_train --- spacy/cli/ud_train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/ud_train.py b/spacy/cli/ud_train.py index a19b976d9..f5d254816 100644 --- a/spacy/cli/ud_train.py +++ b/spacy/cli/ud_train.py @@ -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):