This repository provides sample Python code for making REST calls to the Language Service API for Azure AI Services. Please refer to this Medium article for a more detailed explanation.
Python 3.8 or later
python-dotenv library
Azure Language Service configured in Azure
- Clone the repo:
git clone https://github.com/doitintl/azure-ai-services-demo.git
- Install library for reading environment variables file .env:
pip install python-dotenv
- Modify .env file to use your Azure Language Service Key and Endpoint.
- Execute one of the python files where you will be prompted to provide text to be analyzed:
python <filename>