QuestionAnsweringClient Class
The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview
- Inheritance
-
azure.ai.language.questionanswering.aio._operations._operations.QuestionAnsweringClientOperationsMixinQuestionAnsweringClient
Constructor
QuestionAnsweringClient(endpoint: str, credential: azure.core.credentials.AzureKeyCredential, **kwargs: Any)
Parameters
- endpoint
- str
Supported Cognitive Services endpoint (e.g., https://.api.cognitiveservices.azure.com).
- default_language
- str
Sets the default language to use for all operations.
Methods
| close | |
| send_request |
Runs the network request through the client's chained policies.
For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart |
close
async close() -> None
send_request
Runs the network request through the client's chained policies.
>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = await client.send_request(request)
<AsyncHttpResponse: 200 OK>
For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
send_request(request: azure.core.rest._rest_py3.HttpRequest, **kwargs: Any) -> Awaitable[azure.core.rest._rest_py3.AsyncHttpResponse]
Parameters
- stream
- bool
Whether the response payload will be streamed. Defaults to False.
Returns
The response of your network call. Does not do error handling on your response.
Return type
Feedback
Submit and view feedback for