mirror of
https://github.com/explosion/spaCy.git
synced 2025-11-07 03:17:37 +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. |
||
|---|---|---|
| .. | ||
| api | ||
| images | ||
| models | ||
| usage | ||
| styleguide.mdx | ||