All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.justai.jaicf.activator.caila.CailaEntityActivatorContext.kt Maven / Gradle / Ivy

Go to download

JAICF-Kotlin Caila NLU Activator Adapter. Provides intent recognition and named entity extraction.

There is a newer version: 1.3.8
Show newest version
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