Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Error executing #2

Closed
ukamath opened this issue Oct 11, 2017 · 1 comment
Closed

Error executing #2

ukamath opened this issue Oct 11, 2017 · 1 comment

Comments

@ukamath
Copy link

ukamath commented Oct 11, 2017

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'

@mingkuan
Copy link
Contributor

Thanks for reporting this bug. The support for both python2 and python3 is added. Please pull the latest and try it again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants