You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
When run using python sse_main.py get following error
File "sse_main.py", line 413, in
tf.app.run()
File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "sse_main.py", line 410, in main
train()
File "sse_main.py", line 244, in train
FLAGS.data_dir, FLAGS.model_dir, FLAGS.src_vocab_size, FLAGS.tgt_vocab_size)
File "/Users/uday.kamath/Sequence-Semantic-Embedding/data_utils.py", line 324, in prepare_raw_data
create_vocabulary(tgt_vocab_path, os.path.join(processed_data_dir, "targetIDs"), tgt_vocabulary_size, tokenizer, normalize_digits=False)
File "/Users/uday.kamath/Sequence-Semantic-Embedding/data_utils.py", line 174, in create_vocabulary
line = line.strip().split('\t')[0]
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered:
When run using python sse_main.py get following error
File "sse_main.py", line 413, in
tf.app.run()
File "/Users/uday.kamath/anaconda/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "sse_main.py", line 410, in main
train()
File "sse_main.py", line 244, in train
FLAGS.data_dir, FLAGS.model_dir, FLAGS.src_vocab_size, FLAGS.tgt_vocab_size)
File "/Users/uday.kamath/Sequence-Semantic-Embedding/data_utils.py", line 324, in prepare_raw_data
create_vocabulary(tgt_vocab_path, os.path.join(processed_data_dir, "targetIDs"), tgt_vocabulary_size, tokenizer, normalize_digits=False)
File "/Users/uday.kamath/Sequence-Semantic-Embedding/data_utils.py", line 174, in create_vocabulary
line = line.strip().split('\t')[0]
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered: