ExistingEntity

data class ExistingEntity(val suggested: SuggestedEntity, val existing: <Error class: unknown class>) : SuggestedEntityResolution

An existing entity was found that matches the suggested entity. The recommended entity merges labels from both entities, preferring the more specific type (e.g., Detective over Person).

Constructors

Link copied to clipboard
constructor(suggested: SuggestedEntity, existing: <Error class: unknown class>)

Properties

Link copied to clipboard
open override val existing: <Error class: unknown class>
Link copied to clipboard
open override val recommended: <Error class: unknown class>

Merge labels from suggested and existing entities. This ensures that if a Person is later identified as a Detective, the merged entity has both labels. Labels are normalized to simple names (no FQN).

Link copied to clipboard
open override val suggested: SuggestedEntity

Functions

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String