Package com.oracle.bmc.ailanguage.model
Class TextClassificationDocumentResult.Builder
- java.lang.Object
-
- com.oracle.bmc.ailanguage.model.TextClassificationDocumentResult.Builder
-
- Enclosing class:
- TextClassificationDocumentResult
public static class TextClassificationDocumentResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextClassificationDocumentResult
build()
TextClassificationDocumentResult.Builder
copy(TextClassificationDocumentResult model)
TextClassificationDocumentResult.Builder
key(String key)
Document unique identifier defined by the user.TextClassificationDocumentResult.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 : HebrewTextClassificationDocumentResult.Builder
textClassification(List<TextClassification> textClassification)
List of detected text classes.
-
-
-
Method Detail
-
key
public TextClassificationDocumentResult.Builder key(String key)
Document unique identifier defined by the user.- Parameters:
key
- the value to set- Returns:
- this builder
-
textClassification
public TextClassificationDocumentResult.Builder textClassification(List<TextClassification> textClassification)
List of detected text classes.- Parameters:
textClassification
- the value to set- Returns:
- this builder
-
languageCode
public TextClassificationDocumentResult.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 TextClassificationDocumentResult build()
-
copy
public TextClassificationDocumentResult.Builder copy(TextClassificationDocumentResult model)
-
-