public class FeedbackDataOutput
extends com.ibm.cloud.sdk.core.service.model.GenericModel
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 OriginalLabelsOut |
originalLabels |
protected Pagination |
pagination |
protected java.lang.String |
text |
protected UpdatedLabelsOut |
updatedLabels |
Constructor and Description |
---|
FeedbackDataOutput() |
Modifier and Type | Method and Description |
---|---|
ShortDoc |
getDocument()
Gets the document.
|
java.lang.String |
getFeedbackType()
Gets the feedbackType.
|
Location |
getLocation()
Gets the location.
|
java.lang.String |
getModelId()
Gets the modelId.
|
java.lang.String |
getModelVersion()
Gets the modelVersion.
|
OriginalLabelsOut |
getOriginalLabels()
Gets the originalLabels.
|
Pagination |
getPagination()
Gets the pagination.
|
java.lang.String |
getText()
Gets the text.
|
UpdatedLabelsOut |
getUpdatedLabels()
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 OriginalLabelsOut originalLabels
@SerializedName(value="updated_labels") protected UpdatedLabelsOut updatedLabels
protected Pagination pagination
public java.lang.String getFeedbackType()
A string identifying the user adding the feedback. The only permitted value is `element_classification`.
public ShortDoc getDocument()
Brief information about the input document.
public java.lang.String getModelId()
An optional string identifying the model ID. The only permitted value is `contracts`.
public java.lang.String getModelVersion()
An optional string identifying the version of the model used.
public Location getLocation()
The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.
public java.lang.String getText()
The text to which the feedback applies.
public OriginalLabelsOut getOriginalLabels()
The original labeling from the input document, without the submitted feedback.
public UpdatedLabelsOut getUpdatedLabels()
The updated labeling from the input document, accounting for the submitted feedback.
public Pagination getPagination()
Pagination details, if required by the length of the output.