Skip to content

Commit

Permalink
Fix init of Language without model
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Mar 26, 2017
1 parent fa107f9 commit 83ba6c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spacy/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def __init__(self, **overrides):
path = pathlib.Path(path)
if path is True:
path = util.get_data_path() / self.lang

if not path.exists() and 'path' not in overrides:
path = None
self.meta = overrides.get('meta', {})
self.path = path

Expand Down

0 comments on commit 83ba6c2

Please sign in to comment.