mirror of https://github.com/explosion/spaCy.git
* Add support for debug feature set. Just use unigrams for this.
This commit is contained in:
parent
3b70b304b2
commit
71648205d9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue