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

Before Change


    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)

After Change


        self.assertEqual(actual, expected)

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

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: osmr/imgclsmob
Commit Name: 0168d5298ab0878818e44b311678ff683f5ee0e2
Time: 2019-03-04
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/oth_irevnet2.py
Class Name: iRevNet
Method Name: forward


Project Name: kengz/SLM-Lab
Commit Name: 275856246e6823b941ca16358b06828e2b40e854
Time: 2019-05-11
Author: kengzwl@gmail.com
File Name: run_lab.py
Class Name:
Method Name: run_by_mode


Project Name: facebookresearch/pytext
Commit Name: a8a098209b69ccaa22bc5d99332e306e21cad5d8
Time: 2019-01-29
Author: zsc@fb.com
File Name: pytext/models/semantic_parsers/rnng/rnng_parser.py
Class Name: RNNGParser
Method Name: get_loss