5ad9ae2b8ae6b55b07e99de924c77112706aa3b7,src/fonduer/features/feature_libs/visual_features.py,,extract_visual_features,#,23

Before Change


                    yield candidate.id, FEAT_PRE + f, v

        // Binary candidates
        elif len(args) == 2:
            span1, span2 = args
            // Add VisualLib entity features (if applicable)
            if span1.sentence.is_visual() or span2.sentence.is_visual():
                for span, pre in [(span1, "e1_"), (span2, "e2_")]:

After Change


        else:
            spans = args
            // Add VisualLib entity features (if applicable)
            if all([span.sentence.is_visual() for span in spans]):
                for i, span in enumerate(spans):
                    prefix = f"e{i}_"
                    if span.stable_id not in unary_vizlib_feats:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: HazyResearch/fonduer
Commit Name: 5ad9ae2b8ae6b55b07e99de924c77112706aa3b7
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/features/feature_libs/visual_features.py
Class Name:
Method Name: extract_visual_features


Project Name: DistrictDataLabs/yellowbrick
Commit Name: ca14cf72e3e4bd3a6136cafad8701ac41f48f09b
Time: 2018-08-25
Author: davidwaterman@gmail.com
File Name: yellowbrick/cluster/elbow.py
Class Name: KElbowVisualizer
Method Name: __init__


Project Name: HazyResearch/fonduer
Commit Name: 0110937ab04f4298f98963bed1de08962d776b24
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/features/feature_libs/structural_features.py
Class Name:
Method Name: extract_structural_features