MLHub package for Azure Text Analytics cognitive services
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Azure Text Analytics

This MLHub package provides a quick introduction to the pre-built Text Analytics models provided through Azure's Cognitive Services. This service extracts information from text that we supply to it. Such information includes the language, key phrases, sentiment (0-1 as negative to positive sentiment), and entities.

A free Azure subscription allowing up to 5,000 transactions per month is available from Once set up visit and Create a resource under AI and Machine Learning called Text Analytics. Once created you can access the web API subscription key from the portal. This will be prompted for in the demo.

Please note that this is closed source software which limits your freedoms and has no guarantee of ongoing availability.

Visit the github repository for more details:

The Python code is based on the Azure Text Analytics Quick Start


To install and run the pre-built model:

$ pip3 install mlhub
$ ml install   aztext
$ ml configure aztext
$ ml demo      aztext
$ ml score     aztext

Do note that sentiments, key phrases, and entities are not available for all languages.

Further Information

For language translation see the azlang package.