MediaPipeTasksText Framework Reference

TextSummarizerStreamResult

class TextSummarizerStreamResult: NSObject

The result of a streaming summarization operation.

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

    Declaration

    Swift

    init(chunk: String, done: Bool)

    Parameters

    chunk

    The generated summary text chunk.

    done

    Whether the summarization is done.

    Return Value

    An initialized MPPTextSummarizerStreamResult.

  • The generated summary text chunk.

    Declaration

    Swift

    var chunk: String { get }
  • Whether the summarization is done.

    Declaration

    Swift

    var done: Bool { get }