public class Intent
extends java.lang.Object
Constructor and Description |
---|
Intent(java.lang.String intent,
java.lang.Double confidence)
Instantiates a new intent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getConfidence()
Returns the confidence associated with the intent.
|
java.lang.String |
getIntent()
Returns the name of the intent that the system detected in the user input.
|
void |
setConfidence(java.lang.Double confidence)
Sets the system confidence in the intent.
|
void |
setIntent(java.lang.String intent)
Sets the name of the intent the system understood the user to have 'said'.
|
public Intent(java.lang.String intent, java.lang.Double confidence)
intent
- the intentconfidence
- the confidencepublic java.lang.Double getConfidence()
public java.lang.String getIntent()
public void setConfidence(java.lang.Double confidence)
confidence
- a float between 0.0 and 1.0public void setIntent(java.lang.String intent)
intent
- a string representing one of the trained intents