IntentScore Class

  • java.lang.Object
    • com.microsoft.bot.builder.IntentScore

public class IntentScore

Score plus any extra information about an intent.

Constructor Summary

Constructor Description
IntentScore()

Method Summary

Modifier and Type Method and Description
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> getProperties()

Gets extra properties to include in the results.

double getScore()

Gets confidence in an intent.

void setProperties(String key, JsonNode value)

Sets extra properties to include in the results.

void setScore(double withScore)

Sets confidence in an intent.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

IntentScore

public IntentScore()

Method Details

getProperties

public Map getProperties()

Gets extra properties to include in the results.

Returns:

Any extra properties to include in the results.

getScore

public double getScore()

Gets confidence in an intent.

Returns:

Confidence in an intent.

setProperties

public void setProperties(String key, JsonNode value)

Sets extra properties to include in the results.

Parameters:

key - The key of the property.
value - The JsonNode value of the property.

setScore

public void setScore(double withScore)

Sets confidence in an intent.

Parameters:

withScore - Confidence in an intent.

Applies to