3f53ea45a17dd29b8ef20db08484e7537c6aa4e3,rasa/cli/run.py,,run,#Any#,34

Before Change




def run(args):
    if not os.path.isfile(args.model):
        logger.error("Failed to load model. File "{}" does not exist."
                     "".format(os.path.abspath(args.model)))
        exit(1)

    working_directory = tempfile.mkdtemp()
    model_path = unpack_model(args.model, working_directory)

    _endpoints = AvailableEndpoints.read_endpoints(args.endpoints)

After Change


def run(args):
    model_paths = get_model(args.model, subdirectories=True)

    if model_paths is None:
        print("No model found for path "{}".".format(args.model))

    model_path, core_path, nlu_path = model_paths
    _endpoints = AvailableEndpoints.read_endpoints(args.endpoints)

    _interpreter = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: RasaHQ/rasa
Commit Name: 3f53ea45a17dd29b8ef20db08484e7537c6aa4e3
Time: 2019-02-12
Author: t.wochinger@rasa.com
File Name: rasa/cli/run.py
Class Name:
Method Name: run


Project Name: deepmipt/DeepPavlov
Commit Name: 2e530e78c78c3f9f899143c437f55618d3038951
Time: 2018-02-18
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: load


Project Name: dmlc/gluon-nlp
Commit Name: aeb516494daa207720b428072ab49eeea7bfff75
Time: 2019-06-13
Author: xshiab@ust.hk
File Name: scripts/text_generation/sequence_sampling.py
Class Name:
Method Name: