...
/Implement the Azure Text Analytics Service - 1
Implement the Azure Text Analytics Service - 1
Create your REST API using the Azure Text Analytics Service.
We'll cover the following...
We'll cover the following...
Create a virtual environment for our API
We have already discussed how to create a virtual environment using Anaconda as well as the venv Python package. Before starting this project, it is advisable to create a virtual environment and activate it.
In this project, we will not use any
asyncfunctionality for the sake of understanding the normalAPIbuilding. Although, if you want, you can go ahead with theasyncfunctionality that we have already discussed.
Create the call_text_analytics_api function
We will first create a function call_text_analytics_api() that will accept three parameters:
- Header data: This contains our key for the text analytics