PropositionDuplicateFilter

class PropositionDuplicateFilter(minPropositionLength: Int = 50) : MentionFilter

Filter that detects when LLM returned proposition text as mention span.

Catches LLM field mapping errors where the model confused the proposition text field with the mention span field.

Constructors

Link copied to clipboard
constructor(minPropositionLength: Int = 50)

Functions

Link copied to clipboard
open override fun isValid(mention: SuggestedMention, propositionText: String): Boolean

Validates whether an entity mention should be included in entity resolution.

Link copied to clipboard
open override fun rejectionReason(mention: SuggestedMention): String?

Cannot determine rejection reason without proposition context.