spaCy/website/api/textcategorizer.jade

20 lines
1023 B
Plaintext
Raw Normal View History

2017-10-03 15:27:22 +03:00
//- 💫 DOCS > API > TEXTCATEGORIZER
include ../_includes/_mixins
p
| The model supports classification with multiple, non-mutually exclusive
| labels. You can change the model architecture rather easily, but by
| default, the #[code TextCategorizer] class uses a convolutional
| neural network to assign position-sensitive vectors to each word in the
2017-11-01 21:49:04 +03:00
| document. The #[code TextCategorizer] uses its own CNN model, to
2017-10-03 15:27:22 +03:00
| avoid sharing weights with the other pipeline components. The document
2017-11-01 21:49:04 +03:00
| tensor is then summarized by concatenating max and mean pooling, and a
| multilayer perceptron is used to predict an output vector of length
| #[code nr_class], before a logistic activation is applied elementwise.
| The value of each output neuron is the probability that some class is
| present.
2017-10-03 15:27:22 +03:00
//- This class inherits from Pipe, so this page uses the template in pipe.jade.
2017-10-03 15:27:22 +03:00
!=partial("pipe", { subclass: "TextCategorizer", short: "textcat", pipeline_id: "textcat" })