EntityOverlapSignalScorer

class EntityOverlapSignalScorer constructor(weight: Double = 1.0) : CollectorSignalScorer

Scores how much two propositions' entity mentions overlap, as Jaccard similarity of their stable mention ids.

When either proposition has no entity mentions at all, there's nothing to compare on the entity axis — that's missing evidence, not a mismatch, so this scorer abstains rather than blend in a jaccard of 0 as if the entities disagreed.

Parameters

weight

contribution weight for this signal in the aggregated blend; defaults to 1.0.

Constructors

Link copied to clipboard
constructor(weight: Double = 1.0)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun score(pair: CandidatePair, contextId: <Error class: unknown class>): CollectorSignalScore?