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

com.microsoft.azure.cognitiveservices.language.textanalytics.models.SentimentBatchResultItem Maven / Gradle / Ivy

There is a newer version: 1.0.2-beta
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.language.textanalytics.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The SentimentBatchResultItem model.
 */
public class SentimentBatchResultItem {
    /**
     * A decimal number between 0 and 1 denoting the sentiment of the document.
     * A score above 0.7 usually refers to a positive document while a score
     * below 0.3 normally has a negative connotation. Mid values refer to
     * neutral text.
     */
    @JsonProperty(value = "score", access = JsonProperty.Access.WRITE_ONLY)
    private Double score;

    /**
     * Unique document identifier.
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /**
     * Get the score value.
     *
     * @return the score value
     */
    public Double score() {
        return this.score;
    }

    /**
     * Get the id value.
     *
     * @return the id value
     */
    public String id() {
        return this.id;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy