Back to Devexpress

SummarizeBehavior.SummarizationMode Property

wpf-devexpress-dot-aiintegration-dot-wpf-dot-summarizebehavior.md

latest2.8 KB
Original Source

SummarizeBehavior.SummarizationMode Property

Gets or sets the summarization mode. This is a dependency property.

Namespace : DevExpress.AIIntegration.Wpf

Assembly : DevExpress.AIIntegration.Wpf.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Wpf

Declaration

csharp
public SummarizationMode SummarizationMode { get; set; }
vb
Public Property SummarizationMode As SummarizationMode

Property Value

TypeDescription
SummarizationMode

The summarization mode.

|

Available values:

NameDescription
Abstractive

Generates a summary by understanding the context of the original text and rephrasing it in a new, concise form. The AI essentially “writes” a new summary based on its understanding, which may include new sentences that were not present in the original text.

| | Extractive |

Selects and extracts key sentences or phrases from the original text. The AI identifies the most important parts of the content and combines them into a summary without altering the original wording.

|

Remarks

SummarizeBehavior supports the following summarization modes:

  1. Abstractive Summarization

  2. Extractive Summarization

The following example activates the AI-powered “Summarize” extension in a TextEdit control:

xaml
<dx:ThemedWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" 
    xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
    x:Class="AIAssistant.MainWindow"
    Title="MainWindow" Height="800" Width="800">
    <Grid>
        <dxe:TextEdit TextWrapping="Wrap" AcceptsReturn="True" VerticalContentAlignment="Top">
            <dxmvvm:Interaction.Behaviors>
                <dxai:SummarizeBehavior x:Name="Summarize" SummarizationMode = "Extractive"/>
            </dxmvvm:Interaction.Behaviors>
        </dxe:TextEdit>
    </Grid>
</dx:ThemedWindow>

See Also

SummarizeBehavior Class

SummarizeBehavior Members

DevExpress.AIIntegration.Wpf Namespace