Mention

data class Mention(val id: String, val resolvedId: String? = null, val span: String, val type: String, val role: String)

Drivine graph projection of a dice EntityMention: an entity reference within a proposition.

role is stored as the com.embabel.dice.proposition.MentionRole name string to keep this package free of dice-core types (see PropositionNode). resolvedId is range-indexed because entity filters (mentions.any { resolvedId eq ... }) query it.

Constructors

Link copied to clipboard
constructor(id: String, resolvedId: String? = null, span: String, type: String, role: String)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
val resolvedId: String? = null
Link copied to clipboard

com.embabel.dice.proposition.MentionRole name (SUBJECT / OBJECT / OTHER).

Link copied to clipboard
Link copied to clipboard