TrainingExample

public struct TrainingExample : Codable, Equatable

Training example details.

  • The document ID associated with this training example.

    Declaration

    Swift

    public var documentID: String?
  • The cross reference associated with this training example.

    Declaration

    Swift

    public var crossReference: String?
  • The relevance of the training example.

    Declaration

    Swift

    public var relevance: Int?
  • Initialize a TrainingExample with member variables.

    Declaration

    Swift

    public init(
        documentID: String? = nil,
        crossReference: String? = nil,
        relevance: Int? = nil
    )

    Parameters

    documentID

    The document ID associated with this training example.

    crossReference

    The cross reference associated with this training example.

    relevance

    The relevance of the training example.

    Return Value

    An initialized TrainingExample.