* Add deprecation warning for unused load_vectors argument.

This commit is contained in:
Matthew Honnibal 2015-09-09 14:31:09 +02:00
parent 0b527fbdc8
commit d9f1fc2112
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from os import path from os import path
from warnings import warn
try: try:
import ujson as json import ujson as json
@ -184,7 +185,10 @@ class Language(object):
return None return None
def __init__(self, data_dir=None, vocab=None, tokenizer=None, tagger=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: if data_dir is None:
data_dir = self.default_data_dir() data_dir = self.default_data_dir()
if vocab is None: if vocab is None: