From d9f1fc211202a0c4aff75db665e8a74060d31e81 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 9 Sep 2015 14:31:09 +0200 Subject: [PATCH] * Add deprecation warning for unused load_vectors argument. --- spacy/language.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 881df7d1a..f32756a4d 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -1,4 +1,5 @@ from os import path +from warnings import warn try: import ujson as json @@ -184,7 +185,10 @@ class Language(object): return None def __init__(self, data_dir=None, vocab=None, tokenizer=None, tagger=None, - parser=None, entity=None, matcher=None, serializer=None): + parser=None, entity=None, matcher=None, serializer=None, + load_vectors=True): + if load_vectors is not True: + warn("load_vectors is deprecated", DeprecationWarning) if data_dir is None: data_dir = self.default_data_dir() if vocab is None: