Class FeedbackDataInput

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.FeedbackDataInput
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class FeedbackDataInput
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Feedback data for submission.
  • Method Details

    • newBuilder

      public FeedbackDataInput.Builder newBuilder()
      New builder.
      Returns:
      a FeedbackDataInput builder
    • feedbackType

      public String feedbackType()
      Gets the feedbackType.

      The type of feedback. The only permitted value is `element_classification`.

      Returns:
      the feedbackType
    • document

      public ShortDoc document()
      Gets the document.

      Brief information about the input document.

      Returns:
      the document
    • modelId

      public String modelId()
      Gets the modelId.

      An optional string identifying the model ID. The only permitted value is `contracts`.

      Returns:
      the modelId
    • modelVersion

      public String modelVersion()
      Gets the modelVersion.

      An optional string identifying the version of the model used.

      Returns:
      the modelVersion
    • location

      public Location location()
      Gets the location.

      The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.

      Returns:
      the location
    • text

      public String text()
      Gets the text.

      The text on which to submit feedback.

      Returns:
      the text
    • originalLabels

      public OriginalLabelsIn originalLabels()
      Gets the originalLabels.

      The original labeling from the input document, without the submitted feedback.

      Returns:
      the originalLabels
    • updatedLabels

      public UpdatedLabelsIn updatedLabels()
      Gets the updatedLabels.

      The updated labeling from the input document, accounting for the submitted feedback.

      Returns:
      the updatedLabels