f528c38e26d59b231dd94b87d6603ca243fee766,deeppavlov/core/commands/infer.py,,build_model_from_config,#Any#Any#,28

Before Change



def build_model_from_config(config, mode="infer"):
    model_config = config["model"]
    model_name = model_config["name"]

    vocabs = {}
    if "vocabs" in config:
        for vocab_param_name, vocab_config in config["vocabs"].items():

After Change


        model = Chainer(model_config["in"], model_config["out"], model_config.get("in_y"))

        for component_config in model_config["pipe"]:
            component = from_params(component_config, vocabs=[], mode=mode)

            if "in" in component_config:
                c_in = component_config["in"]
                c_out = component_config["out"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: f528c38e26d59b231dd94b87d6603ca243fee766
Time: 2018-02-28
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: build_model_from_config


Project Name: allenai/allennlp
Commit Name: 4e9802ed633e4d682fbf95e424c4f0bce0802c7f
Time: 2017-08-16
Author: mattg@allenai.org
File Name: tests/nn/initializers_test.py
Class Name: TestInitializers
Method Name: test_regex_matches_are_initialized_correctly


Project Name: deepmipt/DeepPavlov
Commit Name: 6bd52b20eafb13db4dc1c11463643321be64a021
Time: 2017-12-21
Author: ol.gure@gmail.com
File Name: deeppavlov/core/commands/train.py
Class Name:
Method Name: train_agent_models