TextSummarizerStreamResult
class TextSummarizerStreamResult: NSObjectThe result of a streaming summarization operation.
-
Initializes a new
MPPTextSummarizerStreamResultwith the given chunk and done state.Declaration
Swift
init(chunk: String, done: Bool)Parameters
chunkThe generated summary text chunk.
doneWhether 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 }