FeedbackDataInput

public struct FeedbackDataInput : Codable, Equatable

Feedback data for submission.

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

    Declaration

    Swift

    public var feedbackType: String
  • Brief information about the input document.

    Declaration

    Swift

    public var document: ShortDoc?
  • An optional string identifying the model ID. The only permitted value is contracts.

    Declaration

    Swift

    public var modelID: String?
  • An optional string identifying the version of the model used.

    Declaration

    Swift

    public var modelVersion: String?
  • The numeric location of the identified element in the document, represented with two integers labeled begin and end.

    Declaration

    Swift

    public var location: Location
  • The text on which to submit feedback.

    Declaration

    Swift

    public var text: String
  • The original labeling from the input document, without the submitted feedback.

    Declaration

    Swift

    public var originalLabels: OriginalLabelsIn
  • The updated labeling from the input document, accounting for the submitted feedback.

    Declaration

    Swift

    public var updatedLabels: UpdatedLabelsIn
  • Initialize a FeedbackDataInput with member variables.

    Declaration

    Swift

    public init(
        feedbackType: String,
        location: Location,
        text: String,
        originalLabels: OriginalLabelsIn,
        updatedLabels: UpdatedLabelsIn,
        document: ShortDoc? = nil,
        modelID: String? = nil,
        modelVersion: String? = nil
    )

    Parameters

    feedbackType

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

    location

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

    text

    The text on which to submit feedback.

    originalLabels

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

    updatedLabels

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

    document

    Brief information about the input document.

    modelID

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

    modelVersion

    An optional string identifying the version of the model used.

    Return Value

    An initialized FeedbackDataInput.