public class Intent extends Object
Constructor and Description |
---|
Intent(String intent,
Double confidence)
Instantiates a new intent.
|
Modifier and Type | Method and Description |
---|---|
Double |
getConfidence()
Returns the confidence associated with the intent.
|
String |
getIntent()
Returns the name of the intent that the system detected in the user input.
|
void |
setConfidence(Double confidence)
Sets the system confidence in the intent.
|
void |
setIntent(String intent)
Sets the name of the intent the system understood the user to have 'said'.
|
public Double getConfidence()
public String getIntent()
public void setConfidence(Double confidence)
confidence
- a float between 0.0 and 1.0public void setIntent(String intent)
intent
- a string representing one of the trained intentsCopyright © 2015–2016 IBM Watson. All rights reserved.