Package com.oracle.bmc.ailanguage.model
Class SentimentDocumentResult.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.SentimentDocumentResult.Builder
-
- Enclosing class:
- SentimentDocumentResult
public static class SentimentDocumentResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SentimentDocumentResult.Builder
aspects(List<SentimentAspect> aspects)
List of detected aspects sentiment.SentimentDocumentResult
build()
SentimentDocumentResult.Builder
copy(SentimentDocumentResult model)
SentimentDocumentResult.Builder
documentScores(Map<String,Double> documentScores)
Scores for each sentiment.SentimentDocumentResult.Builder
documentSentiment(String documentSentiment)
Document level sentiment.SentimentDocumentResult.Builder
key(String key)
Document unique identifier defined by the user.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 : HebrewSentimentDocumentResult.Builder
sentences(List<SentimentSentence> sentences)
List of detected sentences sentiment.
-
-
-
Method Detail
-
key
public SentimentDocumentResult.Builder key(String key)
Document unique identifier defined by the user.- Parameters:
key
- the value to set- Returns:
- this builder
-
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
-
aspects
public SentimentDocumentResult.Builder aspects(List<SentimentAspect> aspects)
List of detected aspects sentiment.- Parameters:
aspects
- the value to set- Returns:
- this builder
-
sentences
public SentimentDocumentResult.Builder sentences(List<SentimentSentence> sentences)
List of detected sentences sentiment.- Parameters:
sentences
- 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
-
build
public SentimentDocumentResult build()
-
copy
public SentimentDocumentResult.Builder copy(SentimentDocumentResult model)
-
-