89ad361f08dca73d8f94608c99c729e9987a011d,tests/chunking/test_chunk.py,TestChunk,test_accuracy,#TestChunk#,38

Before Change


    @skip("")
    def test_accuracy(self):
        test_dir = join(dirname(__file__), "samples")
        files = listdir(test_dir)
        ids = [f.split(".")[0] for f in files]
        for id in ids:
            file = join(test_dir, "%s.txt" % id)
            sentence = load_input(file)
            actual = chunk(sentence)
            expected = load_output(file)
            if actual != expected:
                print("Fail {}".format(id))
                save_temp(id, actual)
            self.assertEqual(actual, expected)

After Change


    def test_accuracy(self):
        output = chunk(
            u"Tổng Bí thư: Ai trót để tay nhúng chàm thì hãy sớm tự gột rửa")
        self.assertEqual(len(output), 14)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 89ad361f08dca73d8f94608c99c729e9987a011d
Time: 2017-10-11
Author: brother.rain.1024@gmail.com
File Name: tests/chunking/test_chunk.py
Class Name: TestChunk
Method Name: test_accuracy


Project Name: Qiskit/qiskit-aqua
Commit Name: 840b847de95356b7498cb494fee14dff40b29b92
Time: 2019-04-19
Author: jakub.marecek@ie.ibm.com
File Name: test/test_portfoliodiversification.py
Class Name: TestPortfolioDiversification
Method Name: test_portfoliodiversification


Project Name: undertheseanlp/underthesea
Commit Name: 55c0c71afe15ad23a4630c7bf2510cfe48ed7507
Time: 2017-10-11
Author: brother.rain.1024@gmail.com
File Name: tests/pos_tag/test_pos_tag.py
Class Name: TestPostag
Method Name: test_accuracy