2.8 ml commands

20210420 A MLHub package can expose any number of commands. The commands command will list the commands supported by the package.

It is expected that for the same functionality different packages will use the same command name. Here is a list of common commands:

$ ml adult       pkg <file.jpg>  # Does image contain questionable material.
$ ml brands      pkg
$ ml category    pkg
$ ml celebrities pkg
$ ml color       pkg <file.jpg>  # Colorize a (black and white) photo.
$ ml describe    pkg
$ ml faces       pkg
$ ml geocode     pkg
$ ml identify    pkg <file.png>  # Identify onjects in a photo.
$ ml landmarks   pkg
$ ml objects     pkg
$ ml ocr         pkg <file.jpg>  # Optical character recognition.
$ ml predict     pkg
$ ml sentiment   pkg <sentences> # Sentiment of a sentence.
$ ml synthesize  pkg <file.wav>  # Synthesize speech from text.
$ ml tags        pkg
$ ml thumbnail   pkg <file.png>  # Create an effective thumbnail for the image.
$ ml train       pkg <file.csv>  # Train a model based on new data.
$ ml transcribe  pkg             # Transcribe audio from the microphone.

Most commands also support command line options which always begin with a single dash for a single letter command line option or a double dash for more explicit commands. Command line options will be common across different packages. Examples include:

     -b            --bing               Generate Bing Maps URL.
     -i <file.txt> --input=<file.txt>   Input data.
     -g            --google             Generate Google Maps URL.
     -l <lang>     --lang=<lang>        Target language.
     -m <int>      --max=<int>          Maximum number of matches.
     -o            --osm                Generate Open Street Map URL.
     -o <file.wav> --output=<file.wav>  Save audio to file.
     -u            --url                Generate Open Street Map URL.
     -v <voice>    --voice=<voice>      Selected voice.

Your donation will support ongoing development 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-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.