IntentModel Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. luis. runtime. models. IntentModel
- com.
public class IntentModel
An intent detected from the utterance.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
intent()
Get the intent value. |
Double |
score()
Get the score value. |
Intent |
withIntent(String intent)
Set the intent value. |
Intent |
withScore(Double score)
Set the score value. |
Method Details
intent
public String intent()
Get the intent value.
Returns:
the intent value
score
public Double score()
Get the score value.
Returns:
the score value
withIntent
public IntentModel withIntent(String intent)
Set the intent value.
Parameters:
intent
- the intent value to set
Returns:
the IntentModel object itself.
withScore
public IntentModel withScore(Double score)
Set the score value.
Parameters:
score
- the score value to set
Returns:
the IntentModel object itself.
Applies to
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für