May 2020
Intermediate to advanced
404 pages
10h 52m
English
This section will show you how to use the Text Analytics API in your own Python code. The following are the steps for using it:
import requestsimport osfrom pprint import pprint
api_key = os.environ['text_api_key']
text_analytics_base_url = \'https://eastus.api.cognitive.microsoft.com/text/analytics/v2.0'language_api_url = text_analytics_base_url + "/languages"sentiment_api_url = text_analytics_base_url + "/sentiment"key_phrase_api_url = text_analytics_base_url + "/keyPhrases"
Read now
Unlock full access