MediaPipeTasksText Framework Reference

Correction

class Correction: NSObject

A single correction.

  • Initializes a new MPPCorrection with the given type and text.

    Declaration

    Swift

    init(type: CorrectionType, text: String)

    Parameters

    type

    The type of correction.

    text

    The text associated with the correction.

    Return Value

    An initialized MPPCorrection.

  • The text associated with the correction.

    Declaration

    Swift

    var text: String { get }
  • The type of correction.

    Declaration

    Swift

    var type: CorrectionType { get }