From 71648205d95fbf97a1607913887a6dd27b18d5c0 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 24 Mar 2015 04:29:01 +0100 Subject: [PATCH] * Add support for debug feature set. Just use unigrams for this. --- spacy/syntax/parser.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index e93249362..a7c2d5121 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -62,6 +62,8 @@ def get_templates(name): return pf.arc_eager elif name == 'ner': return pf.ner + elif name == 'debug': + return pf.unigrams else: return (pf.unigrams + pf.s0_n0 + pf.s1_n0 + pf.s0_n1 + pf.n0_n1 + \ pf.tree_shape + pf.trigrams)