8d8c13451b84d5386bc30087b6519ee4e13bb21f,tests/preprocessing/test_labelers.py,TestLabelers,setUp,#TestLabelers#,8

Before Change


class TestLabelers(unittest.TestCase):
    def setUp(self):
        self.dataset = Dataset()
        doc = Document()
        part = Part("some text ... (c.2708_2711delTTAG, p.V903GfsX905) ... text")
        self.dataset.documents["doc_1"] = doc
        doc.parts["part_1"] = part
        from nala.preprocessing.spliters import NLTKSplitter

After Change


        self.dataset = StringReader("some text ... (c.2708_2711delTTAG, p.V903GfsX905) ... text").read()
        NLTKSplitter().split(self.dataset)
        TmVarTokenizer().tokenize(self.dataset)
        part = list(self.dataset.parts())[0]
        part.annotations.append(Annotation(MUT_CLASS_ID, 15, "c.2708_2711delTTAG"))
        part.annotations.append(Annotation(MUT_CLASS_ID, 35, "p.V903GfsX905"))

    def test_bio_labeler(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: 8d8c13451b84d5386bc30087b6519ee4e13bb21f
Time: 2015-09-16
Author: aleksandar.bojchevski@gmail.com
File Name: tests/preprocessing/test_labelers.py
Class Name: TestLabelers
Method Name: setUp


Project Name: vatlab/SoS
Commit Name: 582c091333553cdf2ba673084c332de8776a89b3
Time: 2017-06-20
Author: ben.bog@gmail.com
File Name: src/sos/jupyter/completer.py
Class Name: SoS_Completer
Method Name: complete_text


Project Name: okfn-brasil/serenata-de-amor
Commit Name: c50ffb52761973c43aa78e876cd9159fd75f0b56
Time: 2016-09-08
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/loaddatasets.py
Class Name: Command
Method Name: handle


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 40e5a6078d978694948f61cc490d9e83c6719088
Time: 2016-09-08
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/loaddatasets.py
Class Name: Command
Method Name: handle