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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SentimentDocumentResult.Builderaspects(List<SentimentAspect> aspects)List of detected aspects sentiment.SentimentDocumentResultbuild()SentimentDocumentResult.Buildercopy(SentimentDocumentResult model)SentimentDocumentResult.BuilderdocumentScores(Map<String,Double> documentScores)Scores for each sentiment.SentimentDocumentResult.BuilderdocumentSentiment(String documentSentiment)Document level sentiment.SentimentDocumentResult.Builderkey(String key)Document unique identifier defined by the user.SentimentDocumentResult.BuilderlanguageCode(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.Buildersentences(List<SentimentSentence> sentences)List of detected sentences sentiment.
 
- 
- 
- 
Method Detail- 
keypublic SentimentDocumentResult.Builder key(String key) Document unique identifier defined by the user.- Parameters:
- key- the value to set
- Returns:
- this builder
 
 - 
documentSentimentpublic SentimentDocumentResult.Builder documentSentiment(String documentSentiment) Document level sentiment.- Parameters:
- documentSentiment- the value to set
- Returns:
- this builder
 
 - 
documentScorespublic 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
 
 - 
aspectspublic SentimentDocumentResult.Builder aspects(List<SentimentAspect> aspects) List of detected aspects sentiment.- Parameters:
- aspects- the value to set
- Returns:
- this builder
 
 - 
sentencespublic SentimentDocumentResult.Builder sentences(List<SentimentSentence> sentences) List of detected sentences sentiment.- Parameters:
- sentences- the value to set
- Returns:
- this builder
 
 - 
languageCodepublic 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
 
 - 
buildpublic SentimentDocumentResult build() 
 - 
copypublic SentimentDocumentResult.Builder copy(SentimentDocumentResult model) 
 
- 
 
-