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


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

        dataset = Dataset()
        for doc_id in tm_var:
            doc = Document()
            text = tm_var[doc_id]["text"]
            part = Part(text)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: arviz-devs/arviz
Commit Name: 000b2823b3b008845c2a2f6d4117acab034ebae5
Time: 2019-02-20
Author: 29407246+Ban-zee@users.noreply.github.com
File Name: arviz/data/inference_data.py
Class Name: InferenceData
Method Name: to_netcdf


Project Name: idaholab/raven
Commit Name: 438b2a63d195c8f5ccecae35d577d8bfde354406
Time: 2020-08-22
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/GeneticAlgorithm.py
Class Name: GeneticAlgorithm
Method Name: _useRealization