SuggestedMention

data class SuggestedMention(val span: String, val type: String, val suggestedId: String? = null, val role: String = "OTHER")

A mention suggested by the LLM during proposition extraction. Lighter weight than EntityMention - contains only what the LLM provides.

Constructors

Link copied to clipboard
constructor(span: String, type: String, suggestedId: String? = null, role: String = "OTHER")

Properties

Link copied to clipboard

The role of this mention in the proposition

Link copied to clipboard

The text as it appears in the proposition

Link copied to clipboard
val suggestedId: String? = null

Entity ID if the LLM can identify a specific entity

Link copied to clipboard

Entity type label from schema (e.g., "Person")

Functions

Link copied to clipboard
fun toEntityMention(resolvedId: String? = suggestedId): EntityMention

Convert to EntityMention with the resolved ID (if any).