mirror of https://github.com/explosion/spaCy.git
* Add missing keyword arguments to spacy.load() function
This commit is contained in:
parent
2add5206aa
commit
8b4677d34d
|
@ -8,8 +8,18 @@ set_lang_class(en.English.lang, en.English)
|
|||
set_lang_class(de.German.lang, de.German)
|
||||
|
||||
|
||||
def load(name, vectors=None, via=None):
|
||||
def load(name, vocab=None, tokenizer=None, parser=None, tagger=None, entity=None,
|
||||
matcher=None, serializer=None, vectors=None, via=None):
|
||||
package = get_package_by_name(name, via=via)
|
||||
vectors_package = get_package_by_name(vectors, via=via)
|
||||
cls = get_lang_class(name)
|
||||
return cls(package=package, vectors_package=vectors_package)
|
||||
return cls(
|
||||
package=package,
|
||||
vectors_package=vectors_package,
|
||||
vocab=vocab,
|
||||
tokenizer=tokenizer,
|
||||
tagger=tagger,
|
||||
parser=parser,
|
||||
entity=entity,
|
||||
matcher=matcher,
|
||||
serializer=serializer)
|
||||
|
|
Loading…
Reference in New Issue