AssertionError: Token substring not found in subtoken vocabulary
I've also stumbled on this. For some context on my problem, I'm working on using a custom message and response dataset with the EN_BPE_TOK space using the generator_utils.get_or_generate_txt_vocab vocab builder.
Looks like this was caused by symlinking the data, and worked when I copied the data files to the specified location.
Sorry can you please advise where did you copy the data? I am also getting this error while testing tensor2tensor on my own data. I put the data in t2t_data directory which is my $DATA_DIR.
T2T expects the input/downloaded data in t2t_tmp dir. The t2t_data dir contains the preprocessed data in TFRecords and the vocabularies.
yes actually in the experiment I assigned t2t_tmp=$DATA_DIR. So both t2t_tmp and t2t_data are same directory. In other words, my preprocessed data and vocabularies are present in DATA_DIR.
Actually i get the error during shuffling phase, as I get the unshuffled data.
INFO:tensorflow:Generating case 100000.
INFO:tensorflow:Generating case 200000.
INFO:tensorflow:Generating case 300000.
INFO:tensorflow:Generating case 400000.
INFO:tensorflow:Generating case 500000.
INFO:tensorflow:Generating case 600000.
INFO:tensorflow:Generating case 700000.
INFO:tensorflow:Generating case 800000.
INFO:tensorflow:Generating case 900000.
INFO:tensorflow:Generating case 1000000.
INFO:tensorflow:Generating case 1100000.
INFO:tensorflow:Generating case 1200000.
Traceback (most recent call last):
File "/usr/local/bin/t2t-datagen", line 213, in
Please note that my t2t_usr has googdom.py which is similar to wmt.py
Hi, I encountered this problem today, I put my customized vocab file to t2t_data, but the error still exists.