MediaPipeTasksText Framework Reference

TextProofreaderStreamResult

class TextProofreaderStreamResult: NSObject

The result of a streaming proofread operation.

  • Initializes a new MPPTextProofreaderStreamResult with the given chunk and done state.

    Declaration

    Swift

    init(chunk: String, corrections: [Correction]?, done: Bool)

    Parameters

    chunk

    The generated proofread text chunk.

    corrections

    The list of corrections.

    done

    Whether the proofreading is done.

    Return Value

    An initialized MPPTextProofreaderStreamResult.

  • The generated proofread text chunk.

    Declaration

    Swift

    var chunk: String { get }
  • The list of corrections to transform the input text to the proofread text. Only populated when done is YES.

    Declaration

    Swift

    var corrections: [Correction]? { get }
  • Whether the proofreading is done.

    Declaration

    Swift

    var done: Bool { get }