MediaPipeTasksText Framework Reference

TextProofreaderCorrection

class TextProofreaderCorrection : NSObject

A single correction span in a TextProofreaderResult (Swift alias Correction).

  • The type of correction.

    Declaration

    Swift

    var type: TextProofreaderCorrectionType { get }
  • The text associated with the correction.

    Declaration

    Swift

    var text: String { get }
  • Initializes a new correction with the given type and text.

    Declaration

    Swift

    init(type: TextProofreaderCorrectionType, text: String)