Open gjwgit opened 6 years ago
The implementation might be through the DESCRIPTION.yaml file. The languages= tag can take a list of languages, with the first being the default. When a configure changes the default to another language the the users local DESCRIPTION.yaml get updated. It reverts to the package maintainer's default on an install.
From #20: Allow a single model package to support any number of languages, as listed in the languages tag line in the YAML file. The first language listed is the default and the user has an option to change the language (if more than one supported) on the CONFIGURE command. The change gets reflected in the locally installed DESCRIPTION.yaml file to keep things simple for the mlhub command line.
Each model should allow for the possibility of the pre-built model using R and Python. For example dogs-cats-r and dogs-cats-py should be just dogs-cats, perhaps with one or the other (or neither so require choice on configure):
$ ml setup dogs-cats language=r
$ ml configure dogs-cats Choose default language (R|Python):