5e794fc711636f9b543ff512c590bf17d2609e75,tests/shared/hardware_utils.py,,entity_level_f1,#Any#Any#Any#Any#Any#,88

Before Change


        return
    // Turn CandidateSet into set of tuples
    logger.info("Preparing candidates...")
    pb = ProgressBar(len(candidates))
    entities = set()
    for i, c in enumerate(candidates):
        pb.bar(i)
        part = c[0].span.get_span()
        doc = c[0].span.sentence.document.name.upper()
        if attribute:
            val = c[1].span.get_span()
        for p in get_implied_parts(part, doc, parts_by_doc):
            if attribute:
                entities.add((doc, p, val))
            else:
                entities.add((doc, p))
    pb.close()

    (TP_set, FP_set, FN_set) = entity_confusion_matrix(entities, gold_set)
    TP = len(TP_set)
    FP = len(FP_set)

After Change


    // Turn CandidateSet into set of tuples
    logger.info("Preparing candidates...")
    entities = set()
    for i, c in enumerate(tqdm(candidates)):
        part = c[0].span.get_span()
        doc = c[0].span.sentence.document.name.upper()
        if attribute:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: HazyResearch/fonduer
Commit Name: 5e794fc711636f9b543ff512c590bf17d2609e75
Time: 2018-08-16
Author: lwhsiao@stanford.edu
File Name: tests/shared/hardware_utils.py
Class Name:
Method Name: entity_level_f1


Project Name: HazyResearch/fonduer
Commit Name: 5e794fc711636f9b543ff512c590bf17d2609e75
Time: 2018-08-16
Author: lwhsiao@stanford.edu
File Name: tests/shared/hardware_utils.py
Class Name:
Method Name: load_hardware_labels


Project Name: facebookresearch/ParlAI
Commit Name: 18c169d3c4409046ed778e440584caedee5d0b30
Time: 2019-12-19
Author: edinan@fb.com
File Name: parlai/utils/world_logging.py
Class Name: WorldLogger
Method Name: write_parlai_format


Project Name: tensorflow/datasets
Commit Name: 9ea53fa7a5c1a3594a5a5019e299a34f38290851
Time: 2020-06-26
Author: sharanramjee@gmail.com
File Name: tensorflow_datasets/core/download/kaggle.py
Class Name: KaggleCompetitionDownloader
Method Name: download_competition