76125cafc9734441b4dab036e345fbb0abf1d84a,deeppavlov/models/ner/ner_network.py,NerNetwork,load,#NerNetwork#,197

Before Change


        if ckpt and ckpt.model_checkpoint_path:
            print("\n:: restoring checkpoint from", ckpt.model_checkpoint_path, "\n")
            saver.restore(self._sess, ckpt.model_checkpoint_path)
            print("session restored")
        else:
            print("\n:: <ERR> checkpoint not found! \n")

    def tokens_batch_to_numpy_batch(self, batch_x, batch_y=None):

After Change


                    print("Restore NerNetwork model from {}".format(str(self.load_path)))
                    saver.restore(self._sess, str(self.load_path))
                else:
                    warn("Provided `load_path` is incorrect!")
            else:
                warn("Provided `load_path` is incorrect!")
        else:
            warn("No `load_path` is provided for {}".format(self.__class__.__name__))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 76125cafc9734441b4dab036e345fbb0abf1d84a
Time: 2018-01-26
Author: ol.gure@gmail.com
File Name: deeppavlov/models/ner/ner_network.py
Class Name: NerNetwork
Method Name: load


Project Name: AlexEMG/DeepLabCut
Commit Name: 390d6560c6873526218606c254627f52898c700d
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/create_project/new.py
Class Name:
Method Name: create_new_project


Project Name: keras-team/keras
Commit Name: 6b7421c44890dd96df5680c7383fc7af4e341e24
Time: 2016-10-09
Author: jeanmichel.arbona@gmail.com
File Name: keras/layers/recurrent_convolutional.py
Class Name: LSTMConv2D
Method Name: __init__