LuisRecognizer Class
- java.
lang. Object - com.
microsoft. bot. ai. luis. TelemetryRecognizer - com.
microsoft. bot. ai. luis. LuisRecognizer
- com.
- com.
public class LuisRecognizer
extends TelemetryRecognizer
Luis Recognizer class to query the LUIS Service using the configuration set by the LuisRecognizeroptions. A LUIS based implementation of TelemetryRecognizer.
Constructor Summary
| Constructor | Description |
|---|---|
| LuisRecognizer(LuisRecognizerOptions recognizerOptions) |
Initializes a new instance of the Luis Recognizer. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(TurnContext turnContext, LuisRecognizerOptions recognizerOptions, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(TurnContext turnContext, LuisRecognizerOptions recognizerOptions, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(TurnContext turnContext, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(TurnContext turnContext, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(DialogContext dialogContext, Activity activity, LuisRecognizerOptions recognizerOptions, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(DialogContext dialogContext, Activity activity, LuisRecognizerOptions recognizerOptions, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(DialogContext dialogContext, Activity activity, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| java.util.concurrent.CompletableFuture<T> |
<T>recognize(DialogContext dialogContext, Activity activity, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics, Class<T> c)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
| void |
onRecognizerResult(RecognizerResult recognizerResult, TurnContext turnContext, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics)
Invoked prior to a Luis |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(TurnContext turnContext)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(TurnContext turnContext, LuisRecognizerOptions recognizerOptions)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(TurnContext turnContext, LuisRecognizerOptions recognizerOptions, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(TurnContext turnContext, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(DialogContext dialogContext, Activity activity)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(DialogContext dialogContext, Activity activity, LuisRecognizerOptions recognizerOptions)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(DialogContext dialogContext, Activity activity, LuisRecognizerOptions recognizerOptions, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics)
Return results of the analysis (Suggested actions and intents). |
|
java.util.concurrent.CompletableFuture<Recognizer |
recognize(DialogContext dialogContext, Activity activity, Map<String,String> telemetryProperties, Map<String,Double> telemetryMetrics)
Return results of the analysis (Suggested actions and intents). |
| static java.lang.String |
topIntent(RecognizerResult results)
Returns the name of the top scoring intent from a set of LUIS results. |
| static java.lang.String |
topIntent(RecognizerResult results, double minScore)
Returns the name of the top scoring intent from a set of LUIS results. |
| static java.lang.String |
topIntent(RecognizerResult results, String defaultIntent)
Returns the name of the top scoring intent from a set of LUIS results. |
| static java.lang.String |
topIntent(RecognizerResult results, String defaultIntent, double minScore)
Returns the name of the top scoring intent from a set of LUIS results. |
Methods inherited from TelemetryRecognizer
Methods inherited from java.lang.Object
Constructor Details
LuisRecognizer
public LuisRecognizer(LuisRecognizerOptions recognizerOptions)
Initializes a new instance of the Luis Recognizer.
Parameters:
Method Details
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
<T>recognize
public CompletableFuture
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
Parameters:
Returns:
onRecognizerResult
public void onRecognizerResult(RecognizerResult recognizerResult, TurnContext turnContext, Map
Invoked prior to a LuisResult being logged.
Parameters:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
recognize
public CompletableFuture
Return results of the analysis (Suggested actions and intents).
Parameters:
Returns:
topIntent
public static String topIntent(RecognizerResult results)
Returns the name of the top scoring intent from a set of LUIS results.
Parameters:
0.0
Returns:
topIntent
public static String topIntent(RecognizerResult results, double minScore)
Returns the name of the top scoring intent from a set of LUIS results.
Parameters:
Returns:
topIntent
public static String topIntent(RecognizerResult results, String defaultIntent)
Returns the name of the top scoring intent from a set of LUIS results.
Parameters:
0.0
Returns:
topIntent
public static String topIntent(RecognizerResult results, String defaultIntent, double minScore)
Returns the name of the top scoring intent from a set of LUIS results.
Parameters:
Returns: