c9e73e23d952569574d23aafad6479caa5828b49,examples/np_semantic_segmentation/feature_extraction.py,PalmettoClass,get_pmi_score,#PalmettoClass#Any#,38

Before Change


            response_list.append(
                self.palmetto.get_coherence(candidates, coherence_type="uci"))
        except CoherenceTypeNotAvailable:
            response_list.extend([0, 0])
        except EndpointDown:
            response_list.extend([0, 0])
        return response_list

After Change


            else:
                response_list.append(0)
            chi_sq_score = self.chi_sq_dict[tuple(candidates)]
            if chi_sq_score:
                response_list.append(chi_sq_score[0])
            else:
                response_list.append(0)
        except KeyError:
            response_list.extend([0, 0])
        return response_list
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: c9e73e23d952569574d23aafad6479caa5828b49
Time: 2018-05-14
Author: amit.yaccobi@intel.com
File Name: examples/np_semantic_segmentation/feature_extraction.py
Class Name: PalmettoClass
Method Name: get_pmi_score


Project Name: dmlc/gluon-nlp
Commit Name: 5ea0c27f524a3e684d9a2e6f012e30e6da2de8aa
Time: 2019-06-18
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_classifier.py
Class Name:
Method Name: test


Project Name: catalyst-team/catalyst
Commit Name: 021b07ba9751b9eb817e6b9e203612abf5a9ce18
Time: 2019-11-10
Author: alex.gaziev@gmail.com
File Name: catalyst/dl/experiment/supervised.py
Class Name: SupervisedExperiment
Method Name: get_callbacks