244940504e919a9f5c4e191f3d121ecebec00950,tests/chunking/test_chunking.py,,save_temp,#Any#Any#,35
Before Change
def save_temp(id, output):
temp_file = join(samples_dir, "%s.actual" % id)
content = u"\n".join([u"\t".join(item) for item in output])
if sys.version_info >= (3, 0):
open(temp_file, "w", encoding="utf-8").write(content)
else:
open(temp_file, "w").write(content.encode("utf-8"))
class TestChunking(TestCase):
def test_simple_cases(self):
sentence = u""
actual = chunk(sentence)
After Change
def save_temp(id, output):
temp_file = join(samples_dir, "%s.actual" % id)
content = u"\n".join([u"\t".join(item) for item in output])
write(temp_file, content)
class TestChunking(TestCase):
def test_simple_cases(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: undertheseanlp/underthesea
Commit Name: 244940504e919a9f5c4e191f3d121ecebec00950
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/chunking/test_chunking.py
Class Name:
Method Name: save_temp
Project Name: undertheseanlp/underthesea
Commit Name: 244940504e919a9f5c4e191f3d121ecebec00950
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/word_sent/test_word_sent.py
Class Name:
Method Name: save_temp
Project Name: undertheseanlp/underthesea
Commit Name: 244940504e919a9f5c4e191f3d121ecebec00950
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/chunking/test_chunking.py
Class Name:
Method Name: save_temp
Project Name: undertheseanlp/underthesea
Commit Name: 5e7a5ee56847be985d62b4f07bdc7c3e587e09b2
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/pos_tag/test_pos_tag.py
Class Name:
Method Name: save_temp