azure.cognitiveservices.language.luis.runtime.operations module¶
-
class
azure.cognitiveservices.language.luis.runtime.operations.
PredictionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
PredictionOperations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
-
resolve
(app_id, query, timezone_offset=None, verbose=None, staging=None, spell_check=None, bing_spell_check_subscription_key=None, log=None, custom_headers=None, raw=False, **operation_config)[source]¶ Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters.
Parameters: - app_id (str) – The LUIS application ID (Guid).
- query (str) – The utterance to predict.
- timezone_offset (float) – The timezone offset for the location of the request.
- verbose (bool) – If true, return all intents instead of just the top scoring intent.
- staging (bool) – Use the staging endpoint slot.
- spell_check (bool) – Enable spell checking.
- bing_spell_check_subscription_key (str) – The subscription key to use when enabling bing spell check
- log (bool) – Log query (default is true)
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: LuisResult or ClientRawResponse if raw=true
Return type: LuisResult or ClientRawResponse
Raises:
-
models
= <module 'azure.cognitiveservices.language.luis.runtime.models' from '/usr/lib/python3/dist-packages/azure/cognitiveservices/language/luis/runtime/models/__init__.py'>¶