Sinch Node.js SDK - v0.0.4
    Preparing search index...

    Interface MachineLearningSentimentResult

    interface MachineLearningSentimentResult {
        message?: string;
        results?: MachineLearningSentimentEnum[];
        score?: number;
        sentiment?: SentimentEnum;
    }
    Index

    Properties

    message?: string

    The message text that was analyzed.

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

    score?: number

    The likelihood that the assigned sentiment represents the emotional context of the analyzed text. 1 is the maximum value, representing the highest likelihood that the message text matches the sentiment, and 0 is the minimum value, representing the lowest likelihood that the message text matches the sentiment.

    sentiment?: SentimentEnum

    The most probable sentiment of the analyzed text.