com.justai.jaicf.activator.caila.CailaEntityActivatorContext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of caila Show documentation
Show all versions of caila Show documentation
JAICF-Kotlin Caila NLU Activator Adapter. Provides intent recognition and named entity extraction.
package com.justai.jaicf.activator.caila
import com.justai.jaicf.activator.caila.dto.CailaAnalyzeResponseData
import com.justai.jaicf.activator.caila.dto.CailaEntityMarkupData
import com.justai.jaicf.activator.caila.dto.CailaInferenceResultData
import com.justai.jaicf.activator.intent.IntentActivatorContext
import com.justai.jaicf.context.ActivatorContext
import com.justai.jaicf.context.StrictActivatorContext
data class CailaEntityActivatorContext(
val result: CailaAnalyzeResponseData,
val entityData: CailaEntityMarkupData
) : StrictActivatorContext(), java.io.Serializable {
val entity = entityData.entity
val value = entityData.value
val text = entityData.text
companion object {
private const val serialVersionUID = 1L
}
}
val ActivatorContext.cailaEntity
get() = this as? CailaEntityActivatorContext
© 2015 - 2025 Weber Informatics LLC | Privacy Policy