mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-12 04:38:28 +03:00
* Fix command line arguments for tagger
This commit is contained in:
parent
a76316ae7e
commit
afed99b3c8
|
@ -254,8 +254,8 @@ cdef class Tagger:
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def blank(cls, vocab, templates, learn_rate=0.005):
|
def blank(cls, vocab, templates, **kwargs):
|
||||||
model = CharacterTagger(vocab.morphology.n_tags, learn_rate=learn_rate)
|
model = CharacterTagger(vocab.morphology.n_tags, **kwargs)
|
||||||
return cls(vocab, model)
|
return cls(vocab, model)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue
Block a user