8511620010ba22123f29ea1a7ec3606ec96aaf69,stanza/models/pos/trainer.py,Trainer,load,#Trainer#Any#Any#,103
Before Change
checkpoint = torch.load(filename, lambda storage, loc: storage)
except BaseException:
logger.exception("Cannot load model from {}".format(filename))
sys.exit(1)
self.args = checkpoint["config"]
self.vocab = MultiVocab.load_state_dict(checkpoint["vocab"])
// load model
emb_matrix = None
After Change
checkpoint = torch.load(filename, lambda storage, loc: storage)
except BaseException:
logger.exception("Cannot load model from {}".format(filename))
raise
self.args = checkpoint["config"]
self.vocab = MultiVocab.load_state_dict(checkpoint["vocab"])
// load model
emb_matrix = None
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 3
Instances
Project Name: stanfordnlp/stanza
Commit Name: 8511620010ba22123f29ea1a7ec3606ec96aaf69
Time: 2020-04-29
Author: tdimson@gmail.com
File Name: stanza/models/pos/trainer.py
Class Name: Trainer
Method Name: load
Project Name: stanfordnlp/stanza
Commit Name: 8511620010ba22123f29ea1a7ec3606ec96aaf69
Time: 2020-04-29
Author: tdimson@gmail.com
File Name: stanza/models/tokenize/trainer.py
Class Name: Trainer
Method Name: load
Project Name: stanfordnlp/stanza
Commit Name: 8511620010ba22123f29ea1a7ec3606ec96aaf69
Time: 2020-04-29
Author: tdimson@gmail.com
File Name: stanza/models/ner/trainer.py
Class Name: Trainer
Method Name: load
Project Name: bsmurphy/PyKrige
Commit Name: 53583ca94d9975e371ac1a6e0f3eb15318dddbca
Time: 2016-07-20
Author: rth.yurchak@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: stanfordnlp/stanza
Commit Name: 8511620010ba22123f29ea1a7ec3606ec96aaf69
Time: 2020-04-29
Author: tdimson@gmail.com
File Name: stanza/models/lemma/trainer.py
Class Name: Trainer
Method Name: load
Project Name: stanfordnlp/stanza
Commit Name: 8511620010ba22123f29ea1a7ec3606ec96aaf69
Time: 2020-04-29
Author: tdimson@gmail.com
File Name: stanza/models/depparse/trainer.py
Class Name: Trainer
Method Name: load
Project Name: stanfordnlp/stanza
Commit Name: 8511620010ba22123f29ea1a7ec3606ec96aaf69
Time: 2020-04-29
Author: tdimson@gmail.com
File Name: stanza/models/mwt/trainer.py
Class Name: Trainer
Method Name: load