MediaPipeTasksText Framework Reference

TextProofreaderResult

class TextProofreaderResult: NSObject

The result of a proofread operation.

  • Initializes a new MPPTextProofreaderResult with the given text and corrections.

    Declaration

    Swift

    init(proofreadText: String, corrections: [Correction])

    Parameters

    proofreadText

    The generated proofread text.

    corrections

    The list of corrections.

    Return Value

    An initialized MPPTextProofreaderResult.

  • The list of corrections to transform the input text to the proofread text.

    Declaration

    Swift

    var corrections: [Correction] { get }
  • The generated proofread text.

    Declaration

    Swift

    var proofreadText: String { get }