From 1b240f2119e04e9c1f23c3141719cf62f1058f51 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 30 Nov 2018 16:40:11 +0000 Subject: [PATCH] Fix default token_vector_width --- spacy/pipeline.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index e2a244080..362604082 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -442,7 +442,7 @@ class Tensorizer(Pipe): **cfg: Config parameters. RETURNS (Model): A `thinc.neural.Model` or similar instance. """ - input_size = util.env_opt('token_vector_width', cfg.get('input_size', 128)) + input_size = util.env_opt('token_vector_width', cfg.get('input_size', 96)) return zero_init(Affine(output_size, input_size, drop_factor=0.0)) def __init__(self, vocab, model=True, **cfg):