withMentionFilter

Add a mention filter to validate entity mentions before creating entities. When enabled, low-quality mentions (vague references, overly long spans, etc.) are filtered out before entity resolution.

Return

A new pipeline instance with mention filtering enabled

Parameters

filter

The mention filter to use