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

Non-data size: 5

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: pantsbuild/pants
Commit Name: 27b837981e7e04cea66f5ffee974c271a350946d
Time: 2016-03-17
Author: nhoward@twopensource.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_ivy_resolve_integration.py
Class Name: IvyResolveIntegrationTest
Method Name: test_java_compile_with_ivy_report


Project Name: EpistasisLab/tpot
Commit Name: e513059dd85ee2d9a267c8197386eaf2b135f38a
Time: 2018-09-20
Author: weixuanf@pennmedicine.upenn.edu
File Name: tests/tpot_tests.py
Class Name:
Method Name: test_save_periodic_pipeline_2


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c126330671804501dbd10c07f6005ede871ee24a
Time: 2019-04-16
Author: M.N.Tran@ibm.com
File Name: art/classifiers/tensorflow_unittest.py
Class Name: TestTFClassifier
Method Name: test_save