f96951464d4dc822d8a97052cdb765686084aacc,onmt/transforms/bart.py,BARTNoiseTransform,warm_up,#BARTNoiseTransform#Any#,346

Before Change


    def warm_up(self, vocabs):
        if vocabs is None:
            return
        self.vocab = vocabs["src"].itos

        subword_type = self.opts.src_subword_type
        if self.opts.mask_length == "subword":

After Change


                       "or N tokens. (use -1 for N)")

    def warm_up(self, vocabs):
        super().warm_up(None)
        if vocabs is None:
            return
        self.vocabs = vocabs
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: f96951464d4dc822d8a97052cdb765686084aacc
Time: 2020-10-29
Author: linxiao.zeng@gmail.com
File Name: onmt/transforms/bart.py
Class Name: BARTNoiseTransform
Method Name: warm_up


Project Name: deepmipt/DeepPavlov
Commit Name: 5bab0c451fda1312cf81e9d81319799a03fce181
Time: 2018-12-26
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/squad/squad.py
Class Name: SquadModel
Method Name: process_event


Project Name: deepmipt/DeepPavlov
Commit Name: 5bab0c451fda1312cf81e9d81319799a03fce181
Time: 2018-12-26
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/ner/network.py
Class Name: NerNetwork
Method Name: process_event