mp.tasks.text.TextSummarizerOptions

Options for the text summarizer task.

base_options Base options for the text summarizer task.
mode The mode of the text summarizer task.
max_num_tokens The maximum number of tokens for summarization tasks. If set, the summarization will be truncated if the input and output exceed this value. If not set, then the default max_num_tokens is roughly 8k tokens due to the model's capacity.
cache_dir Cache directory for the model weight cache and program cache. To disable caching, set this to ":nocache".
min_log_severity Minimum logging severity (default 4 = ERROR).

Methods

to_ctypes

View source

Generates a ctypes TextSummarizerOptionsC.

__eq__

Return self==value.

cache_dir None
max_num_tokens None
min_log_severity 4
mode <Mode.KEYPOINTS: 1>