TextSummarizerOptions
class TextSummarizerOptions : TaskOptions, NSCopyingOptions for configuring a MediaPipe TextSummarizer task.
-
The mode of the text summarizer (defaults to
.keyPoints).Declaration
Swift
var mode: TextSummarizerMode -
The maximum number of tokens for summarization tasks (0 uses the model's default capacity).
Declaration
Swift
var maxTokens: Int -
Cache directory for the model weight cache and program cache.
Declaration
Swift
var cacheDirectory: String?