Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface MachineLearningNLUResult

    interface MachineLearningNLUResult {
        intent?: string;
        message?: string;
        results?: IntentResult[];
        score?: number;
    }
    Index

    Properties

    intent?: string

    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.

    message?: string

    The message text that was analyzed.

    results?: IntentResult[]

    An array of JSON objects made up of intent and score pairs, where the score represents the likelihood that the message has the corresponding intent.

    score?: number

    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.