fe41a42ff872debbc18f465f003a314f5ad19d29,nala/utils/tagger.py,TmVarTagger,generate_abstracts,#TmVarTagger#Any#,42

Before Change


        exit()

        for doc_id, doc in dataset.documents.items():
            if doc_id in tm_var:
                denotations = tm_var[doc_id]["denotations"]
                text = tm_var[doc_id]["text"]
                denotations = [text[d["span"]["begin"]:d["span"]["end"]] for d in denotations]

                for part_id, part in doc.parts.items():
                    for ann in chain(part.annotations, part.predicted_annotations):
                        if ann.class_id == MUT_CLASS_ID and ann.text not in denotations:
                            ann.subclass = True

After Change


            json.dump(tm_var, file, indent=4)

        for key in tm_var:
            print(json.dumps(tm_var[key], indent=4))

        dataset = Dataset()
        for doc_id in tm_var:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: fe41a42ff872debbc18f465f003a314f5ad19d29
Time: 2015-09-20
Author: carsten.uhlig@gmail.com
File Name: nala/utils/tagger.py
Class Name: TmVarTagger
Method Name: generate_abstracts


Project Name: rlworkgroup/garage
Commit Name: 055b455ba18abcb8b7488a0b03da1fd8b8ab0216
Time: 2020-08-15
Author: ericyihc@gmail.com
File Name: tests/garage/tf/envs/test_gym_base.py
Class Name: TestGymEnv
Method Name: test_all_gym_envs_pickleable


Project Name: dask/distributed
Commit Name: 177dfb891089cc872bab34fb8369d75cae13bc0a
Time: 2018-08-19
Author: mrocklin@gmail.com
File Name: distributed/protocol/serialize.py
Class Name:
Method Name: dask_dumps


Project Name: zake7749/PTT-Chat-Generator
Commit Name: 75c1231f77fc1ebc5af31d5c598f1353ea9aa5df
Time: 2016-10-20
Author: zake7749@gmail.com
File Name: filter.py
Class Name: ArticleFilter
Method Name: generate_corpus