* Add support for debug feature set. Just use unigrams for this.

This commit is contained in:
Matthew Honnibal 2015-03-24 04:29:01 +01:00
parent 3b70b304b2
commit 71648205d9
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ def get_templates(name):
return pf.arc_eager return pf.arc_eager
elif name == 'ner': elif name == 'ner':
return pf.ner return pf.ner
elif name == 'debug':
return pf.unigrams
else: else:
return (pf.unigrams + pf.s0_n0 + pf.s1_n0 + pf.s0_n1 + pf.n0_n1 + \ return (pf.unigrams + pf.s0_n0 + pf.s1_n0 + pf.s0_n1 + pf.n0_n1 + \
pf.tree_shape + pf.trigrams) pf.tree_shape + pf.trigrams)