Skip to content

How does spancat recognizes span and compute confidence score? #9063

Discussion options

You must be logged in to vote

If you look at the implementation of spancat, you can see that it uses a logistic activation. This is different from say, textcat, which uses a softmax activation when you have exclusive classes.

In a softmax activation, all probabilities add to one, because you're picking the best option out of a list of options.

But with spancat that's not what you're doing - like multilabel textcat, a span can have all labels or no labels. So the decision about each label for a span is made more or less independently, and there's no guarantee that the scores for different labels would add to one (which, as you noticed, would make a one-label spancat meaningless).

Since it's a neural network it's not re…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by vitdainhan
Comment options

You must be logged in to vote
3 replies
@polm
Comment options

@vignesh-spericorn
Comment options

@adrianeboyd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / spancat Feature: Span Categorizer
4 participants