b4fc4ccd412d6372d60de32883bdd512c17ac1ff,bin/utils/make_vocab.py,,main,#Any#,58
Before Change
newline_token=FLAGS.newline_token)
with open(FLAGS.output_path, "w") as fout:
fout.write("\n".join(vocab).encode("utf-8") )
if __name__ == "__main__":
tf.app.run()
After Change
max_vocab_size=FLAGS.max_vocab_size,
newline_token=FLAGS.newline_token)
with open(FLAGS.output_path, "w", encoding="utf-8") as fout:
fout.write("\n".join(vocab))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: asyml/texar
Commit Name: b4fc4ccd412d6372d60de32883bdd512c17ac1ff
Time: 2018-10-10
Author: zhitinghu@gmail.com
File Name: bin/utils/make_vocab.py
Class Name:
Method Name: main
Project Name: google/language-resources
Commit Name: 97b96c5d719888773c3977397714b992ca86e606
Time: 2017-11-14
Author: mjansche@google.com
File Name: si/zero_width.py
Class Name:
Method Name:
Project Name: google/language-resources
Commit Name: 97b96c5d719888773c3977397714b992ca86e606
Time: 2017-11-14
Author: mjansche@google.com
File Name: bn/zero_width.py
Class Name:
Method Name: