TextSummarizer Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt ein spezielles Lanugagemodell dar, das die Texteingabe zusammenfassen kann.
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
- Vererbung
- Attribute
Konstruktoren
| Name | Beschreibung |
|---|---|
| TextSummarizer(LanguageModel) |
Initialisiert eine neue Instanz eines TextSummarizer -Objekts. |
Methoden
| Name | Beschreibung |
|---|---|
| IsPromptLargerThanContext(ConversationItem[], ConversationSummaryOptions, UInt64) |
Gibt zurück, ob der Text einer Unterhaltung für das Kontextfenster zu groß ist. |
| IsPromptLargerThanContext(String, UInt64) |
Gibt zurück, ob die Texteingabe für das Kontextfenster zu groß ist. |
| SummarizeAsync(String) |
Fasst die Texteingabe asynchron zusammen. |
| SummarizeConversationAsync(IVectorView<ConversationItem>, ConversationSummaryOptions) |
Fasst asynchron den Text einer Unterhaltung zusammen. |
| SummarizeParagraphAsync(String) |
Fasst asynchron einen Absatz der Texteingabe zusammen. |