d86f0ef86868899b112ac61e598a3333fac66ad2,deeppavlov/models/ner/ner.py,NER,__init__,#NER#,16

Before Change


        opt = deepcopy(kwargs)

        // Look for model direcory and model file names
        model_dir = opt.get("model_dir", None)
        model_file = opt.get("model_file", "ner_model.ckpt")  // default name is ner_model
        if model_dir is None:
            model_dir = USR_PATH

        // Set these arguments to use self.model_path_ property from
        // Serializable class (inherited from Trainable)
        self._model_dir = model_dir
        self._model_file = model_file

        // Find all input parameters of the network init
        network_parameter_names = list(inspect.signature(NerNetwork.__init__).parameters)

After Change


        super().__init__(**kwargs)

        opt = deepcopy(kwargs)
        vocabs = opt.pop("vocabs")
        opt.update(vocabs)

        // Find all input parameters of the network init
        network_parameter_names = list(inspect.signature(NerNetwork.__init__).parameters)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: d86f0ef86868899b112ac61e598a3333fac66ad2
Time: 2018-01-24
Author: arkhipov@yahoo.com
File Name: deeppavlov/models/ner/ner.py
Class Name: NER
Method Name: __init__


Project Name: catalyst-team/catalyst
Commit Name: 81296e3b0a1508f0fa068668ba84c92f39cde431
Time: 2019-12-20
Author: tez.romach@gmail.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_loaders


Project Name: catalyst-team/catalyst
Commit Name: dd28dc9f3f6604a1f9ddfdf0e10fcf35d4e9420e
Time: 2019-08-18
Author: 19803638+bagxi@users.noreply.github.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_optimizer