public class FeedbackDataInput
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
FeedbackDataInput.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected ShortDoc |
document |
protected java.lang.String |
feedbackType |
protected Location |
location |
protected java.lang.String |
modelId |
protected java.lang.String |
modelVersion |
protected OriginalLabelsIn |
originalLabels |
protected java.lang.String |
text |
protected UpdatedLabelsIn |
updatedLabels |
Modifier | Constructor and Description |
---|---|
protected |
FeedbackDataInput(FeedbackDataInput.Builder builder) |
Modifier and Type | Method and Description |
---|---|
ShortDoc |
document()
Gets the document.
|
java.lang.String |
feedbackType()
Gets the feedbackType.
|
Location |
location()
Gets the location.
|
java.lang.String |
modelId()
Gets the modelId.
|
java.lang.String |
modelVersion()
Gets the modelVersion.
|
FeedbackDataInput.Builder |
newBuilder()
New builder.
|
OriginalLabelsIn |
originalLabels()
Gets the originalLabels.
|
java.lang.String |
text()
Gets the text.
|
UpdatedLabelsIn |
updatedLabels()
Gets the updatedLabels.
|
@SerializedName(value="feedback_type") protected java.lang.String feedbackType
protected ShortDoc document
@SerializedName(value="model_id") protected java.lang.String modelId
@SerializedName(value="model_version") protected java.lang.String modelVersion
protected Location location
protected java.lang.String text
@SerializedName(value="original_labels") protected OriginalLabelsIn originalLabels
@SerializedName(value="updated_labels") protected UpdatedLabelsIn updatedLabels
protected FeedbackDataInput(FeedbackDataInput.Builder builder)
public FeedbackDataInput.Builder newBuilder()
public java.lang.String feedbackType()
The type of feedback. The only permitted value is `element_classification`.
public ShortDoc document()
Brief information about the input document.
public java.lang.String modelId()
An optional string identifying the model ID. The only permitted value is `contracts`.
public java.lang.String modelVersion()
An optional string identifying the version of the model used.
public Location location()
The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.
public java.lang.String text()
The text on which to submit feedback.
public OriginalLabelsIn originalLabels()
The original labeling from the input document, without the submitted feedback.
public UpdatedLabelsIn updatedLabels()
The updated labeling from the input document, accounting for the submitted feedback.