public static class TextClassification.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextClassification |
build() |
TextClassification.Builder |
copy(TextClassification model) |
TextClassification.Builder |
label(String label)
Label of the the given text.
|
TextClassification.Builder |
score(Double score)
Score or confidence of extracted text label.
|
public TextClassification.Builder label(String label)
Label of the the given text.
label
- the value to setpublic TextClassification.Builder score(Double score)
Score or confidence of extracted text label. Example: 0.9999856066867399
score
- the value to setpublic TextClassification build()
public TextClassification.Builder copy(TextClassification model)
Copyright © 2016–2024. All rights reserved.