Prediction interface

Represents the prediction of a query.

Properties

alteredQuery

The query after spell checking. Only set if spell check was enabled and a spelling mistake was found.

entities

A dictionary representing the entities that fired.

intents

A dictionary representing the intents that fired.

sentiment

The result of the sentiment analysis.

topIntent

The name of the top scoring intent.

Property Details

alteredQuery

The query after spell checking. Only set if spell check was enabled and a spelling mistake was found.

alteredQuery?: string

Property Value

string

entities

A dictionary representing the entities that fired.

entities: {[propertyName: string]: any}

Property Value

{[propertyName: string]: any}

intents

A dictionary representing the intents that fired.

intents: {[propertyName: string]: Intent}

Property Value

{[propertyName: string]: Intent}

sentiment

The result of the sentiment analysis.

sentiment?: Sentiment

Property Value

topIntent

The name of the top scoring intent.

topIntent: string

Property Value

string