From 0ea52c86b89e65b5bdca23dd331985033a9f0c2d Mon Sep 17 00:00:00 2001 From: svlandeg Date: Wed, 3 Jul 2019 15:02:10 +0200 Subject: [PATCH] remove redundancy --- spacy/language.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/spacy/language.py b/spacy/language.py index 570630eb3..39d95c689 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -11,7 +11,6 @@ from copy import copy, deepcopy from thinc.neural import Model import srsly -from .kb import KnowledgeBase from .tokenizer import Tokenizer from .vocab import Vocab from .lemmatizer import Lemmatizer @@ -810,7 +809,6 @@ class Language(object): # Convert to list here in case exclude is (default) tuple exclude = list(exclude) + ["vocab"] util.from_disk(path, deserializers, exclude) - self._path = path return self