From 75b9819553162d4875524c474cad4b869e0da35d Mon Sep 17 00:00:00 2001 From: kadarakos Date: Tue, 7 Mar 2023 17:13:31 +0100 Subject: [PATCH] Update website/docs/api/spancategorizer.mdx Co-authored-by: Adriane Boyd --- website/docs/api/spancategorizer.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/api/spancategorizer.mdx b/website/docs/api/spancategorizer.mdx index 7722944af..d8a8bdfa5 100644 --- a/website/docs/api/spancategorizer.mdx +++ b/website/docs/api/spancategorizer.mdx @@ -13,11 +13,11 @@ A span categorizer consists of two parts: a [suggester function](#suggesters) that proposes candidate spans, which may or may not overlap, and a labeler model that predicts zero or more labels for each candidate. -This component comes in two forms: `spancat` and `spancat_singlelabel`. When you +This component comes in two forms: `spancat` and `spancat_singlelabel` (added in spaCy v3.5.1). When you need to perform multi-label classification on your spans, use `spancat`. The `spancat` component uses a `Logistic` layer where the output class probabilities are independent for each class. However, if you need to predict at most one true -class for a span, then use `spancat_singlelabel` 3.5.1. +class for a span, then use `spancat_singlelabel`. It uses a `Softmax` layer and treats the spans as a multi-class problem. Predicted spans will be saved in a [`SpanGroup`](/api/spangroup) on the doc.