Package cx.syndeo.script
Interface IntentResult
public interface IntentResult
Represents the result of an intent recognition process.
This interface provides methods to retrieve information about the identified intent,
its confidence score, and whether it corresponds to a menu option.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the recognized intent.doublegetScore()Retrieves the confidence score of the recognized intent.booleanChecks if the recognized intent corresponds to a menu option.
-
Method Details
-
getIntent
String getIntent()Retrieves the name of the recognized intent.- Returns:
- A
Stringrepresenting the name of the intent.
-
getScore
double getScore()Retrieves the confidence score of the recognized intent. The score typically ranges from 0.0 to 1.0, where a higher value indicates greater confidence.- Returns:
- A
doublerepresenting the confidence score.
-
isMenuOption
boolean isMenuOption()Checks if the recognized intent corresponds to a menu option.- Returns:
trueif the intent is a menu option,falseotherwise.
-