def parse_args()

in lama/options.py [0:0]


def parse_args(parser):
    args = parser.parse_args()
    args.models_names = [x.strip().lower() for x in args.models.split(",")]
    if "fconv" in args.models_names:
        if args.data is None:
            raise ValueError(
                "to use fconv you should specify the directory that contains "
                "the pre-trained model and the vocabulary with the option --fconv-model-dir/--fmd\n"
                "you can also specify the fconv model name with the option --fconv-model-name/--fmn (default = 'wiki103.pt')\n"
                "the vocabulary should be in the provided fconv-model-dir and be named dict.txt"
            )
    if "bert" in args.models_names:
        # use the default shortcut name of a Google AI's pre-trained model (default = 'bert-base-cased')
        pass
    if "elmo" in args.models_names:
        if args.elmo_model_dir is None:
            raise ValueError(
                "to use elmo you should specify the directory that contains "
                "the pre-trained model and the vocabulary with the option --elmo-model-dir/--emd\n"
                "you can also specify the elmo model name with the option --elmo-model-name/--emn (default = 'elmo_2x4096_512_2048cnn_2xhighway')\n"
                "and the elmo vocabulary name with the option --elmo-vocab-name/--evn (default = 'vocab-2016-09-10.txt')"
            )

    return args