75ddbb82547e8eb3ea206d27051835c92b8291ce,snips_nlu/cli/training.py,,train,#Any#Any#Any#,17
Before Change
print("Create and train the engine...")
serialized_engine = bytes(json.dumps(engine.to_dict()), encoding="utf8")
with Path(output_path).open("w", encoding="utf8") as f:
f.write(serialized_engine.decode("utf8"))
print("Saved the trained engine to %s" % output_path)
After Change
print("Create and train the engine...")
engine = SnipsNLUEngine(config).fit(dataset)
print("Persisting the engine...")
engine.persist(output_path)
print("Saved the trained engine to %s" % output_path)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: snipsco/snips-nlu
Commit Name: 75ddbb82547e8eb3ea206d27051835c92b8291ce
Time: 2018-07-09
Author: adrien.ball@snips.net
File Name: snips_nlu/cli/training.py
Class Name:
Method Name: train
Project Name: geek-ai/MAgent
Commit Name: eb6566de307bab286c5632b9335ca74c73b68971
Time: 2017-12-06
Author: zhenglianmin96@163.com
File Name: python/magent/utility.py
Class Name:
Method Name: download_file
Project Name: cesium-ml/cesium
Commit Name: 77f2a937615a4911ff251199c489429673532198
Time: 2015-01-14
Author: stefan@sun.ac.za
File Name: TCP/Software/feature_extract/Code/extractors/vosource_parse.py
Class Name: vosource_parser
Method Name: _parse_xmlstring