How to use azure-cognitiveservices-language-luis - 10 common examples

To help you get started, we’ve selected a few azure-cognitiveservices-language-luis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / sub_closed_list_response.py View on Github external
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .sub_closed_list import SubClosedList


class SubClosedListResponse(SubClosedList):
    """Sublist of items for a list entity.

    :param canonical_form: The standard form that the list represents.
    :type canonical_form: str
    :param list: List of synonym words.
    :type list: list[str]
    :param id: The sublist ID
    :type id: int
    """

    _attribute_map = {
        'canonical_form': {'key': 'canonicalForm', 'type': 'str'},
        'list': {'key': 'list', 'type': '[str]'},
        'id': {'key': 'id', 'type': 'int'},
    }
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / sub_closed_list.py View on Github external
def __init__(self, **kwargs):
        super(SubClosedList, self).__init__(**kwargs)
        self.canonical_form = kwargs.get('canonical_form', None)
        self.list = kwargs.get('list', None)
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / sub_closed_list_py3.py View on Github external
def __init__(self, *, canonical_form: str=None, list=None, **kwargs) -> None:
        super(SubClosedList, self).__init__(**kwargs)
        self.canonical_form = canonical_form
        self.list = list
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / sub_closed_list_response_py3.py View on Github external
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .sub_closed_list_py3 import SubClosedList


class SubClosedListResponse(SubClosedList):
    """Sublist of items for a list entity.

    :param canonical_form: The standard form that the list represents.
    :type canonical_form: str
    :param list: List of synonym words.
    :type list: list[str]
    :param id: The sublist ID
    :type id: int
    """

    _attribute_map = {
        'canonical_form': {'key': 'canonicalForm', 'type': 'str'},
        'list': {'key': 'list', 'type': '[str]'},
        'id': {'key': 'id', 'type': 'int'},
    }
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / runtime / operations / prediction_operations.py View on Github external
# Construct headers
        header_parameters = {}
        header_parameters['Accept'] = 'application/json'
        header_parameters['Content-Type'] = 'application/json; charset=utf-8'
        if custom_headers:
            header_parameters.update(custom_headers)

        # Construct body
        body_content = self._serialize.body(query, 'str')

        # Construct and send request
        request = self._client.post(url, query_parameters, header_parameters, body_content)
        response = self._client.send(request, stream=False, **operation_config)

        if response.status_code not in [200]:
            raise models.APIErrorException(self._deserialize, response)

        deserialized = None

        if response.status_code == 200:
            deserialized = self._deserialize('LuisResult', response)

        if raw:
            client_raw_response = ClientRawResponse(deserialized, response)
            return client_raw_response

        return deserialized
    resolve.metadata = {'url': '/apps/{appId}'}
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / production_or_staging_endpoint_info.py View on Github external
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .endpoint_info import EndpointInfo


class ProductionOrStagingEndpointInfo(EndpointInfo):
    """ProductionOrStagingEndpointInfo.

    :param version_id: The version ID to publish.
    :type version_id: str
    :param is_staging: Indicates if the staging slot should be used, instead
     of the Production one.
    :type is_staging: bool
    :param endpoint_url: The Runtime endpoint URL for this model version.
    :type endpoint_url: str
    :param region: The target region that the application is published to.
    :type region: str
    :param assigned_endpoint_key: The endpoint key.
    :type assigned_endpoint_key: str
    :param endpoint_region: The endpoint's region.
    :type endpoint_region: str
    :param failed_regions: Regions where publishing failed.
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / production_or_staging_endpoint_info_py3.py View on Github external
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .endpoint_info_py3 import EndpointInfo


class ProductionOrStagingEndpointInfo(EndpointInfo):
    """ProductionOrStagingEndpointInfo.

    :param version_id: The version ID to publish.
    :type version_id: str
    :param is_staging: Indicates if the staging slot should be used, instead
     of the Production one.
    :type is_staging: bool
    :param endpoint_url: The Runtime endpoint URL for this model version.
    :type endpoint_url: str
    :param region: The target region that the application is published to.
    :type region: str
    :param assigned_endpoint_key: The endpoint key.
    :type assigned_endpoint_key: str
    :param endpoint_region: The endpoint's region.
    :type endpoint_region: str
    :param failed_regions: Regions where publishing failed.
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / intents_suggestion_example_py3.py View on Github external
def __init__(self, *, text: str=None, tokenized_text=None, intent_predictions=None, entity_predictions=None, **kwargs) -> None:
        super(IntentsSuggestionExample, self).__init__(**kwargs)
        self.text = text
        self.tokenized_text = tokenized_text
        self.intent_predictions = intent_predictions
        self.entity_predictions = entity_predictions
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / json_model_feature.py View on Github external
def __init__(self, **kwargs):
        super(JSONModelFeature, self).__init__(**kwargs)
        self.activated = kwargs.get('activated', None)
        self.name = kwargs.get('name', None)
        self.words = kwargs.get('words', None)
        self.mode = kwargs.get('mode', None)
github Azure / azure-sdk-for-python / azure-cognitiveservices-language-luis / azure / cognitiveservices / language / luis / authoring / models / json_model_feature_py3.py View on Github external
def __init__(self, *, activated: bool=None, name: str=None, words: str=None, mode: bool=None, **kwargs) -> None:
        super(JSONModelFeature, self).__init__(**kwargs)
        self.activated = activated
        self.name = name
        self.words = words
        self.mode = mode

azure-cognitiveservices-language-luis

Microsoft Azure Cognitive Services LUIS Client Library for Python

MIT
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis

Popular azure-cognitiveservices-language-luis functions

Similar packages