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
beginandend.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
FeedbackDataInputwith 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
feedbackTypeThe type of feedback. The only permitted value is
element_classification.locationThe numeric location of the identified element in the document, represented with two integers labeled
beginandend.textThe text on which to submit feedback.
originalLabelsThe original labeling from the input document, without the submitted feedback.
updatedLabelsThe updated labeling from the input document, accounting for the submitted feedback.
documentBrief information about the input document.
modelIDAn optional string identifying the model ID. The only permitted value is
contracts.modelVersionAn optional string identifying the version of the model used.
Return Value
An initialized
FeedbackDataInput.
View on GitHub
FeedbackDataInput Structure Reference