ebe4256914107273feb1da940fc3e4237731365e,nalaf/preprocessing/edges.py,SimpleEdgeGenerator,generate,#SimpleEdgeGenerator#,37

Before Change


            part.edges = []

            for ann_1, ann_2 in product(
                    (ann for ann in chain(part.annotations, part.predicted_annotations) if ann.class_id == self.entity1_class),
                    (ann for ann in chain(part.annotations, part.predicted_annotations) if ann.class_id == self.entity2_class)):

                index_1 = part.get_sentence_index_for_annotation(ann_1)

After Change


        import warnings
        warnings.warn("Use `SentenceDistanceEdgeGenerator` directly. This will be deleted", DeprecationWarning)

        super().generate(dataset)


class WordFilterEdgeGenerator(EdgeGenerator):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: ebe4256914107273feb1da940fc3e4237731365e
Time: 2016-11-11
Author: i@juanmi.rocks
File Name: nalaf/preprocessing/edges.py
Class Name: SimpleEdgeGenerator
Method Name: generate


Project Name: lufficc/SSD
Commit Name: ea428b9edb222afbd194b0d369e4ed2b29a5ee06
Time: 2019-05-21
Author: luffy.lcc@gmail.com
File Name: ssd/utils/lr_scheduler.py
Class Name: WarmupMultiStepLR
Method Name: get_lr


Project Name: Rostlab/nalaf
Commit Name: 8a2e857746dbab697b0045aa6c38133f3de71250
Time: 2016-11-14
Author: i@juanmi.rocks
File Name: nalaf/learning/taggers.py
Class Name: StubSameSentenceRelationExtractor
Method Name: annotate