Package com.oracle.bmc.ailanguage.model
Class SentimentSentence.Builder
- java.lang.Object
- 
- com.oracle.bmc.ailanguage.model.SentimentSentence.Builder
 
- 
- Enclosing class:
- SentimentSentence
 
 public static class SentimentSentence.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SentimentSentencebuild()SentimentSentence.Buildercopy(SentimentSentence model)SentimentSentence.Builderlength(Integer length)Length of sentence text.SentimentSentence.Builderoffset(Integer offset)The number of Unicode code points preceding this entity in the submitted text.SentimentSentence.Builderscores(Map<String,Double> scores)Scores or confidences for each sentiment.SentimentSentence.Buildersentiment(String sentiment)The highest-score sentiment for the sentence text.SentimentSentence.Buildertext(String text)Sentence text.
 
- 
- 
- 
Method Detail- 
offsetpublic SentimentSentence.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 SentimentSentence.Builder length(Integer length) Length of sentence text.- Parameters:
- length- the value to set
- Returns:
- this builder
 
 - 
textpublic SentimentSentence.Builder text(String text) Sentence text.- Parameters:
- text- the value to set
- Returns:
- this builder
 
 - 
sentimentpublic SentimentSentence.Builder sentiment(String sentiment) The highest-score sentiment for the sentence text.- Parameters:
- sentiment- the value to set
- Returns:
- this builder
 
 - 
scorespublic SentimentSentence.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 SentimentSentence build() 
 - 
copypublic SentimentSentence.Builder copy(SentimentSentence model) 
 
- 
 
-