mirror of https://github.com/explosion/spaCy.git
Small tweak to ensemble textcat model
This commit is contained in:
parent
200d8bdb3c
commit
f436efd8a4
|
@ -592,7 +592,7 @@ def build_text_classifier(nr_class, width=64, **cfg):
|
||||||
)
|
)
|
||||||
|
|
||||||
linear_model = build_bow_text_classifier(
|
linear_model = build_bow_text_classifier(
|
||||||
nr_class, ngram_size=cfg.get("ngram_size", 1), no_output_layer=True)
|
nr_class, ngram_size=cfg.get("ngram_size", 1), exclusive_classes=False)
|
||||||
if cfg.get('exclusive_classes'):
|
if cfg.get('exclusive_classes'):
|
||||||
output_layer = Softmax(nr_class, nr_class * 2)
|
output_layer = Softmax(nr_class, nr_class * 2)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue