5275d70dcc655a3a99333c0361dc8c24c77ed2c5,pliers/extractors/text.py,BertLMExtractor,_postprocess,#BertLMExtractor#Any#Any#Any#Any#Any#Any#,714

Before Change


            data += [stims.name]
            feat += ["sequence"]
        if len(self.target) > 1:
            self.target = [self.target]
        ons, dur = map(lambda x: listify(x[self.mask_pos]), [ons, dur])
        return data, feat, ons, dur

    def _return_masked_word(self, preds, feat, data):

After Change


            sub_idx = out_idx
        out_idx = [idx for idx in out_idx if idx in sub_idx]
        feat = self.tokenizer.convert_ids_to_tokens(out_idx)
        feat = [f.upper() for f in feat]
        data = [listify(p) for p in preds[0,self.mask_pos,out_idx]]
        if self.return_masked_word:
            feat, data = self._return_masked_word(preds, feat, data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tyarkoni/pliers
Commit Name: 5275d70dcc655a3a99333c0361dc8c24c77ed2c5
Time: 2020-03-27
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: BertLMExtractor
Method Name: _postprocess


Project Name: polyaxon/polyaxon
Commit Name: 0081326892d528f505d0b58543ed9cf57952385c
Time: 2019-10-18
Author: contact@polyaxon.com
File Name: polyaxon/utils/formatting.py
Class Name:
Method Name: dict_to_tabulate


Project Name: MolSSI/QCEngine
Commit Name: 9b32cd78c8aee2500be442f4327095736ac4718c
Time: 2019-06-03
Author: sjrl423@gmail.com
File Name: qcengine/programs/entos.py
Class Name: EntosExecutor
Method Name: build_input


Project Name: MTG/freesound
Commit Name: 68ac615b46cf62ae99d20bba66ae53aea11b80d2
Time: 2020-07-12
Author: pademil@tin.it
File Name: accounts/views.py
Class Name:
Method Name: attribution