Summarizer API
The format read-only property of the Summarizer interface returns the text format summaries will be returned in.
Value
An enumerated value specifying the format of returned summaries. Possible values are:
markdown- : Summaries contain markdown formatting (conforming to the CommonMark spec).
plain-text- : Summaries contain no formatting.
Examples
const summarizer = await Summarizer.create({
format: "plain-text",
// ...
});
// Logs "plain-text"
console.log(summarizer.format);
Specifications
Browser compatibility
See also
- Using the Summarizer API
- Web AI demos on chrome.dev
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
