Package com.oracle.bmc.ailanguage.model
Class SentimentAspect.Builder
- java.lang.Object
- 
- com.oracle.bmc.ailanguage.model.SentimentAspect.Builder
 
- 
- Enclosing class:
- SentimentAspect
 
 public static class SentimentAspect.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SentimentAspectbuild()SentimentAspect.Buildercopy(SentimentAspect model)SentimentAspect.Builderlength(Integer length)Length of aspect text.SentimentAspect.Builderoffset(Integer offset)The number of Unicode code points preceding this entity in the submitted text.SentimentAspect.Builderscores(Map<String,Double> scores)Scores or confidences for each sentiment.SentimentAspect.Buildersentiment(String sentiment)The highest-score sentiment for the aspect text.SentimentAspect.Buildertext(String text)Aspect text.
 
- 
- 
- 
Method Detail- 
offsetpublic SentimentAspect.Builder offset(Integer offset) The number of Unicode code points preceding this entity in the submitted text.- Parameters:
- offset- the value to set
- Returns:
- this builder
 
 - 
lengthpublic SentimentAspect.Builder length(Integer length) Length of aspect text.- Parameters:
- length- the value to set
- Returns:
- this builder
 
 - 
textpublic SentimentAspect.Builder text(String text) Aspect text.- Parameters:
- text- the value to set
- Returns:
- this builder
 
 - 
sentimentpublic SentimentAspect.Builder sentiment(String sentiment) The highest-score sentiment for the aspect text.- Parameters:
- sentiment- the value to set
- Returns:
- this builder
 
 - 
scorespublic SentimentAspect.Builder scores(Map<String,Double> scores) Scores or confidences for each sentiment.Example: {“positive”: 1.0, “negative”: 0.0} - Parameters:
- scores- the value to set
- Returns:
- this builder
 
 - 
buildpublic SentimentAspect build() 
 - 
copypublic SentimentAspect.Builder copy(SentimentAspect model) 
 
- 
 
-