tock / ai.tock.bot.engine.dialog / EntityValue

EntityValue

data class EntityValue (source)

A (may be not yet evaluated) value linked to an entity stored in the context.

Constructors

<init>

EntityValue(nlpResult: NlpResult, value: NlpEntityValue)
EntityValue(sentence: String, value: NlpEntityValue)
EntityValue(entity: Entity, value: Value?, content: String? = null)

A (may be not yet evaluated) value linked to an entity stored in the context.

EntityValue(start: Int?, end: Int?, entity: Entity, content: String?, value: Value? = null, evaluated: Boolean = false, subEntities: List<EntityValue> = emptyList(), probability: Double = 1.0, mergeSupport: Boolean = false)

Properties

content

Text content if any.

val content: String?

end

If extracted from a sentence, end position of the text content in this sentence.

val end: Int?

entity

The linked Entity.

val entity: Entity

evaluated

Is the value has been evaluated?

val evaluated: Boolean

mergeSupport

Does this value support merge?

val mergeSupport: Boolean

probability

The probability of the value.

val probability: Double

start

If extracted from a sentence, start position of the text content in this sentence.

val start: Int?

subEntities

Sub entity values if any.

val subEntities: List<EntityValue>

value

Value if any.

val value: Value?

Functions

toString

fun toString(): String