From 20309fb9dbda330d6b31371610fd5ac5e6663647 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 8 Oct 2017 20:32:14 +0200 Subject: [PATCH] Make history features default to zero --- spacy/syntax/nn_parser.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index 153f7a484..619431766 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -244,8 +244,8 @@ cdef class Parser: hidden_width = util.env_opt('hidden_width', cfg.get('hidden_width', 128)) parser_maxout_pieces = util.env_opt('parser_maxout_pieces', cfg.get('maxout_pieces', 1)) embed_size = util.env_opt('embed_size', cfg.get('embed_size', 7000)) - hist_size = util.env_opt('history_feats', cfg.get('hist_size', 4)) - hist_width = util.env_opt('history_width', cfg.get('hist_width', 16)) + hist_size = util.env_opt('history_feats', cfg.get('hist_size', 0)) + hist_width = util.env_opt('history_width', cfg.get('hist_width', 0)) if hist_size >= 1 and depth == 0: raise ValueError("Inconsistent hyper-params: " "history_feats >= 1 but parser_hidden_depth==0")