mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-27 20:33:42 +03:00
This is a textcat classifier that pools the vectors generated by a tok2vec implementation and then applies a classifier to the pooled representation. Three reductions are supported for pooling: first, max, and mean. When multiple reductions are enabled, the reductions are concatenated before providing them to the classification layer. This model is a generalization of the TextCatCNN model, which only supports mean reductions and is a bit of a misnomer, because it can also be used with transformers. This change also reimplements TextCatCNN.v2 using the new TextCatReduce.v1 layer. |
||
---|---|---|
.. | ||
__init__.py | ||
entity_linker.py | ||
multi_task.py | ||
parser.py | ||
span_finder.py | ||
spancat.py | ||
tagger.py | ||
textcat.py | ||
tok2vec.py |