Python SDK for the Microsoft Language Understanding Intelligent Service API, part of Cognitive Services
Перейти к файлу
microsoft-github-policy-service[bot] 8ec463f320
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-06-12 20:52:58 +00:00
python2 fixing old URLs to the new ones 2017-04-02 15:37:13 +02:00
python3 fixing old URLs to the new ones 2017-04-02 15:37:13 +02:00
.gitignore Added Python2 and Python3 SDKs, gitignore, License, and Contributing files, and modified Readme file 2016-09-04 16:13:54 +02:00
CONTRIBUTING.md Added Python2 and Python3 SDKs, gitignore, License, and Contributing files, and modified Readme file 2016-09-04 16:13:54 +02:00
LICENSE.md Added Python2 and Python3 SDKs, gitignore, License, and Contributing files, and modified Readme file 2016-09-04 16:13:54 +02:00
README.md Added the "Developer Code of Conduct" to the README file. 2016-09-15 03:46:46 +02:00
SECURITY.md Microsoft mandatory file 2023-06-02 20:41:44 +00:00
setup.py Added Python2 and Python3 SDKs, gitignore, License, and Contributing files, and modified Readme file 2016-09-04 16:13:54 +02:00

README.md

LUIS

LUIS is a service for language understanding that provides intent classification and entity extraction. In order to use the SDK you first need to create and publish an app on www.luis.ai where you will get your appID and appKey and input their values when prompted by the sample applications.

The SDK

The SDK can be used in 2 different ways with a separate sample for each way.

  • One way to use it is synchronously by calling the functions "predict" and "reply" that are present in the "LUISClient" and receiving the response as a returned object from the class "LUISResponse".
  • Another way is asynchronously by creating 2 callback functions "on_success" and "on_failure" and passing them to the "predict" and "reply" functions to be called asynchronously in the cases of the request success or failure.

Sample Application

The sample application allows you to perform the Predict and Reply operations and to view the following parts of the parsed response:

  • Query
  • Top Intent
  • Dialog prompt, parameter name, and status
  • Entities

License

All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.

Developer Code of Conduct

Developers using Cognitive Services, including this client library & sample, are required to follow the “Developer Code of Conduct for Microsoft Cognitive Services”.