public interface IntentResult
IntentResult
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Dedicated Builder
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting builder
    The most probable intent of the analyzed text.
    The likelihood that the assigned intent represents the purpose of the analyzed text.
  • Method Details

    • getIntent

      String getIntent()
      The most probable intent of the analyzed text. For example, chitchat.greeting, chitchat.bye, chitchat.compliment, chitchat.how_are_you, or general.yes_or_agreed.
      Returns:
      intent
    • getScore

      Float getScore()
      The likelihood that the assigned intent represents the purpose of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the intent, and 0 is the minimum value, representing the lowest likelihood that the message text matches the intent.
      Returns:
      score
    • builder

      static IntentResult.Builder builder()
      Getting builder
      Returns:
      New Builder instance