TextSummarizer Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Représente un modèle lanugage spécialisé capable de résumer l’entrée de texte.
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
- Héritage
- Attributs
Constructeurs
| Nom | Description |
|---|---|
| TextSummarizer(LanguageModel) |
Initialise une nouvelle instance d’un objet TextSummarizer . |
Méthodes
| Nom | Description |
|---|---|
| IsPromptLargerThanContext(ConversationItem[], ConversationSummaryOptions, UInt64) |
Retourne si le texte d’une conversation est trop volumineux pour la fenêtre de contexte. |
| IsPromptLargerThanContext(String, UInt64) |
Retourne si l’entrée de texte est trop grande pour la fenêtre de contexte. |
| SummarizeAsync(String) |
Récapitule de façon asynchrone l’entrée de texte. |
| SummarizeConversationAsync(IVectorView<ConversationItem>, ConversationSummaryOptions) |
Résume de façon asynchrone le texte d’une conversation. |
| SummarizeParagraphAsync(String) |
Récapitule de façon asynchrone un paragraphe d’entrée de texte. |