Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
TextSummarizer Class
Definition
- Namespace:
- Microsoft.Windows.AI.Text
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a specialized lanugage model capable of summarizing text input.
public ref class TextSummarizer sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.AI.Text.ITextSummarizerFactory, 131072, "Microsoft.Windows.AI.Text.TextIntelligenceContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AI.Text.TextIntelligenceContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextSummarizer final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.AI.Text.ITextSummarizerFactory), 131072, "Microsoft.Windows.AI.Text.TextIntelligenceContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AI.Text.TextIntelligenceContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextSummarizer
function TextSummarizer(languageModel)
Public NotInheritable Class TextSummarizer
- Inheritance
- Attributes
Constructors
| Name | Description |
|---|---|
| TextSummarizer(LanguageModel) |
Initializes a new instance of a TextSummarizer object. |
Methods
| Name | Description |
|---|---|
| IsPromptLargerThanContext(ConversationItem[], ConversationSummaryOptions, UInt64) |
Returns whether the text of a conversation is too large for the context window. |
| IsPromptLargerThanContext(String, UInt64) |
Returns whether the text input is too large for the context window. |
| SummarizeAsync(String) |
Asynchronously summarizes the text input. |
| SummarizeConversationAsync(IVectorView<ConversationItem>, ConversationSummaryOptions) |
Asynchronously summarizes the text of a conversation. |
| SummarizeParagraphAsync(String) |
Asynchronously summarizes a paragraph of text input. |
Applies to
Feedback
Was this page helpful?
