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

Before Change



        // 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

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)
        // Fill all provided parameters from opt
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: ray-project/ray
Commit Name: d192ef06119f3eccf569a844b30976db99cfa0f6
Time: 2020-03-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/training_operator.py
Class Name: TrainingOperator
Method Name: validate


Project Name: ray-project/ray
Commit Name: d192ef06119f3eccf569a844b30976db99cfa0f6
Time: 2020-03-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/training_operator.py
Class Name: TrainingOperator
Method Name: train_epoch