diff --git a/elit/nlp/dep/parser/parser.py b/elit/nlp/dep/parser/parser.py index 3673183..f3129d4 100644 --- a/elit/nlp/dep/parser/parser.py +++ b/elit/nlp/dep/parser/parser.py @@ -162,6 +162,7 @@ def load(self, model_path: str, **kwargs): if self._parser: # already loaded, ignore return self self._config = ParserConfig(os.path.join(model_path, 'config.ini')) + self._config.save_dir = model_path self._vocab = ParserVocabulary.load(self._config.save_vocab_path) with self.context: self._parser = self._create_parser(self._config, self._vocab)