Class SentimentDocumentResult.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • documentSentiment

        public SentimentDocumentResult.Builder documentSentiment​(String documentSentiment)
        Document level sentiment.
        Parameters:
        documentSentiment - the value to set
        Returns:
        this builder
      • documentScores

        public SentimentDocumentResult.Builder documentScores​(Map<String,​Double> documentScores)
        Scores for each sentiment.

        Example: {“positive”: 1.0, “negative”: 0.0}

        Parameters:
        documentScores - the value to set
        Returns:
        this builder
      • languageCode

        public SentimentDocumentResult.Builder languageCode​(String languageCode)
        Language code supported - auto : Automatically detect language - ar : Arabic - pt-BR : Brazilian Portuguese - cs : Czech - da : Danish - nl : Dutch - en : English - fi : Finnish - fr : French - fr-CA : Canadian French - de : German - it : Italian - ja : Japanese - ko : Korean - no : Norwegian - pl : Polish - ro : Romanian - zh-CN : Simplified Chinese - es : Spanish - sv : Swedish - zh-TW : Traditional Chinese - tr : Turkish - el : Greek - he : Hebrew
        Parameters:
        languageCode - the value to set
        Returns:
        this builder