Delen via


LuisResult Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.luis.runtime.models.LuisResult

public class LuisResult

Prediction, based on the input query, containing intent(s) and entities.

Method Summary

Modifier and Type Method and Description
String alteredQuery()

Get the alteredQuery value.

List<CompositeEntityModel> compositeEntities()

Get the compositeEntities value.

List<EntityModel> entities()

Get the entities value.

List<IntentModel> intents()

Get the intents value.

String query()

Get the query value.

Sentiment sentimentAnalysis()

Get the sentimentAnalysis value.

IntentModel topScoringIntent()

Get the topScoringIntent value.

LuisResult withAlteredQuery(String alteredQuery)

Set the alteredQuery value.

LuisResult withCompositeEntities(List<CompositeEntityModel> compositeEntities)

Set the compositeEntities value.

LuisResult withEntities(List<EntityModel> entities)

Set the entities value.

LuisResult withIntents(List<IntentModel> intents)

Set the intents value.

LuisResult withQuery(String query)

Set the query value.

LuisResult withSentimentAnalysis(Sentiment sentimentAnalysis)

Set the sentimentAnalysis value.

LuisResult withTopScoringIntent(IntentModel topScoringIntent)

Set the topScoringIntent value.

Method Details

alteredQuery

public String alteredQuery()

Get the alteredQuery value.

Returns:

the alteredQuery value

compositeEntities

public List compositeEntities()

Get the compositeEntities value.

Returns:

the compositeEntities value

entities

public List entities()

Get the entities value.

Returns:

the entities value

intents

public List intents()

Get the intents value.

Returns:

the intents value

query

public String query()

Get the query value.

Returns:

the query value

sentimentAnalysis

public Sentiment sentimentAnalysis()

Get the sentimentAnalysis value.

Returns:

the sentimentAnalysis value

topScoringIntent

public IntentModel topScoringIntent()

Get the topScoringIntent value.

Returns:

the topScoringIntent value

withAlteredQuery

public LuisResult withAlteredQuery(String alteredQuery)

Set the alteredQuery value.

Parameters:

alteredQuery - the alteredQuery value to set

Returns:

the LuisResult object itself.

withCompositeEntities

public LuisResult withCompositeEntities(List compositeEntities)

Set the compositeEntities value.

Parameters:

compositeEntities - the compositeEntities value to set

Returns:

the LuisResult object itself.

withEntities

public LuisResult withEntities(List entities)

Set the entities value.

Parameters:

entities - the entities value to set

Returns:

the LuisResult object itself.

withIntents

public LuisResult withIntents(List intents)

Set the intents value.

Parameters:

intents - the intents value to set

Returns:

the LuisResult object itself.

withQuery

public LuisResult withQuery(String query)

Set the query value.

Parameters:

query - the query value to set

Returns:

the LuisResult object itself.

withSentimentAnalysis

public LuisResult withSentimentAnalysis(Sentiment sentimentAnalysis)

Set the sentimentAnalysis value.

Parameters:

sentimentAnalysis - the sentimentAnalysis value to set

Returns:

the LuisResult object itself.

withTopScoringIntent

public LuisResult withTopScoringIntent(IntentModel topScoringIntent)

Set the topScoringIntent value.

Parameters:

topScoringIntent - the topScoringIntent value to set

Returns:

the LuisResult object itself.

Applies to