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

Before Change


            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:

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: 4

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: PyMVPA/PyMVPA
Commit Name: 7859ecea2734c65fa6eabb014b2936c5aebc5cb2
Time: 2007-11-07
Author: debian@onerussian.com
File Name: tests/test_dataset.py
Class Name: DatasetTests
Method Name: testZScoring


Project Name: Rostlab/nalaf
Commit Name: 2bfe43baf6d546b546184abc9d1a1d0a1238db0c
Time: 2015-05-23
Author: aleksandar.bojchevski@gmail.com
File Name: source/utils/readers.py
Class Name: HTMLReader
Method Name: read