b75cf8fad96fd1b8905724e0cca17012a88a64fe,pythainlp/corpus/thaipos.py,,get_data,#,7

Before Change


template_file = os.path.join(templates_dir, "thaipos.json")
def get_data():
	with open(template_file) as f:
		model = json.load(f)
	return model

After Change


templates_dir = os.path.join(os.path.dirname(pythainlp.__file__), "corpus")
template_file = os.path.join(templates_dir, "thaipos.json")
def get_data():
	return json.load(reader(open(template_file).read()))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: PyThaiNLP/pythainlp
Commit Name: b75cf8fad96fd1b8905724e0cca17012a88a64fe
Time: 2017-01-02
Author: wannaphong@yahoo.com
File Name: pythainlp/corpus/thaipos.py
Class Name:
Method Name: get_data


Project Name: PyThaiNLP/pythainlp
Commit Name: 8dd9097db3cba44a85aa60c5528da122539a9699
Time: 2017-01-02
Author: wannaphong@yahoo.com
File Name: pythainlp/postaggers/text.py
Class Name:
Method Name: data


Project Name: RaRe-Technologies/gensim
Commit Name: 7df7d1e6fee46e1b87012cdd8fb2f46771e9bf2f
Time: 2016-09-16
Author: mfortier@patsnap.com
File Name: gensim/similarities/index.py
Class Name: AnnoyIndexer
Method Name: load


Project Name: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name: