3572ef3d87b782166f33c121e775e2dd8dd45f5e,pythainlp/test/__init__.py,,,#,22

Before Change


from pythainlp.spell import spell
from collections import namedtuple
from pythainlp.collation import collation
Synset = namedtuple("Synset", "synset li")
class TestUM(unittest.TestCase):
	
	ระบบทดสอบการทำงานของโค้ดของ PyThaiNLP 1.5
	

After Change


	def test_tag_new(self):
    		if sys.version_info > (3,3):
    				self.assertEqual(pos_tag(word_tokenize("ผมรักคุณ"),engine="artagger"),[("ผม", "PPRS"), ("รัก", "VSTA"), ("คุณ", "PPRS")])
if __name__ == "__main__":
    unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: PyThaiNLP/pythainlp
Commit Name: 3572ef3d87b782166f33c121e775e2dd8dd45f5e
Time: 2017-08-03
Author: wannaphong@yahoo.com
File Name: pythainlp/test/__init__.py
Class Name:
Method Name:


Project Name: deepmind/sonnet
Commit Name: 74ef80ead390c8e5b7b624ff67ead9875e22b87d
Time: 2017-10-16
Author: noreply@google.com
File Name: sonnet/python/modules/base_test.py
Class Name:
Method Name:


Project Name: tensorflow/magenta
Commit Name: 982740ee6e56d674e3f220d7bf215ae4132c9c1c
Time: 2019-02-22
Author: fjord@google.com
File Name: magenta/models/onsets_frames_transcription/onsets_frames_transcription_transcribe.py
Class Name:
Method Name:


Project Name: biolab/orange3
Commit Name: 7335417ee0918e7508583952201ec8f602a38d8a
Time: 2015-11-13
Author: kerncece@gmail.com
File Name: Orange/widgets/data/owfile.py
Class Name:
Method Name: