23.4 aztext supported

20210612

The supported command identifies what AI functionality is supported for each language. The output consists of a row for each language with comma separated values (csv), and begins with the full language name, followed by the language code, and the support provided for sentiment analysis, identification of phrases, and extraction of entities.

$ ml supported aztext [<language>]
     -h            --header             Output a header line for the CSV.

language,code,sentiment,phrases,entities

The supported languages as of May 2021 are:

$ ml supported aztext
Chinese-Simplified,zh-hans,True,True,True
Chinese-Traditional,zh-hant,True,True,False
Dutch,nl,True,True,False
English,en,True,True,False
French,fr,True,True,False
German,de,True,True,False
Hindi,hi,True,True,False
Italian,it,True,True,False
Japanese,ja,True,True,False
Korean,ko,True,True,False
Norwegian  (Bokmål),no,True,True,False
Portuguese (Brazil),pt-BR,True,True,False
Portuguese (Portugal),pt-PT,True,True,True
Spanish,es,True,True,False
Turkish,tr,True,True,False

To check if a specific language is supported:

$ ml supported aztext en
English,en,True,True,True

$ ml supported aztext id

Use the --header command line option to list the header row which names the columns:

$ ml supported aztext --header en
language,code,sentiment,phrases,entity
English,en,True,True,True

A pipeline can be constructed to test if a language is supported:

$ LANG=id
$ if test $(ml supported aztext ${LANG} | wc -l) -ne 0; then
    echo "${LANG} is supported"; 
  else 
    echo "${LANG} is not supported"; 
  fi
  
id is not supported


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0