2.9 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 known commands:

$ ml adult       pkg <file.jpg>  # Does image contain questionable material.
$ ml analyze     pkg <file.jpg>  # Analyze an image.
$ ml brands      pkg
$ ml build       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 language    pkg
$ ml limits      pkg             # Report on any limits to the package.
$ ml links       pkg
$ ml objects     pkg
$ ml ocr         pkg <file.jpg>  # Optical character recognition.
$ ml phrases     pkg
$ ml predict     pkg
$ ml sentiment   pkg <sentences> # Sentiment of a sentence.
$ ml supported   pkg             # What the package supports. E.g., languages.
$ 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.
$ ml translate   pkg <text>      # Translate between languages.
$ ml type        pkg

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 tend to be common across different packages and include:

$ ml command pkg [options] [argument]
     -b            --bing               Generate Bing Maps URL.
     -i <file.txt> --input=<file.txt>   Input data.
     -g            --google             Generate Google Maps URL.
     -h            --header             Output a header line for the CSV.
     -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.
     -t <lang>     --to=<lang>          The code for target language, e.g., fr.
     -u            --url                Generate Open Street Map URL.
     -v            --verbose            More information is output.
                   --version            MLHub or package version.
     -v <voice>    --voice=<voice>      Selected voice.
     -y            --yes                Answer yes to any questions.


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.