Hello, I failed to train the selector model. I used the command "sh scripts/selector.sh" , and then I got the error message:
{'adagrad_init_acc': 0.1,
'batch_size': 64,
'beam_size': 4,
'convert_to_coverage_model': False,
'cov_loss_wt': 1.0,
'coverage': False,
'data_path': 'data/finished_files/chunked/train_*',
'decode_method': '',
'emb_dim': 128,
'eval_ckpt_path': '',
'eval_gt_rouge': False,
'eval_method': '',
'exp_name': 'exp_sample',
'hidden_dim_rewriter': 256,
'hidden_dim_selector': 200,
'inconsistent_loss': True,
'inconsistent_topk': 3,
'load_best_eval_model': False,
'log_root': 'log',
'lr': 0.15,
'max_art_len': 50,
'max_dec_steps': 100,
'max_enc_steps': 600,
'max_grad_norm': 2.0,
'max_select_sent': 20,
'max_sent_len': 50,
'max_train_iter': 50000,
'min_dec_steps': 35,
'min_select_sent': 5,
'mode': 'train',
'model': 'selector',
'model_max_to_keep': 3,
'pretrained_rewriter_path': '',
'pretrained_selector_path': '',
'rand_unif_init_mag': 0.02,
'save_model_every': 10,
'save_pkl': False,
'save_vis': False,
'select_method': 'prob',
'selector_loss_wt': 5.0,
'single_pass': False,
'start_eval_rouge': 30000,
'thres': 0.4,
'trunc_norm_init_std': 0.0001,
'vocab_path': 'data/finished_files/vocab',
'vocab_size': 50000}
INFO:tensorflow:Starting selector in train mode...
max_size of vocab was specified as 50000; we now have 50000 words. Stopping reading.
Finished constructing vocabulary of 50000 total words. Last word added: chaudhary
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/mnt/c/unified-summarization-master/batcher.py", line 408, in fill_example_queue
(article, abstract, extract_ids) = input_gen.next() # read the next example from file. article and abstract are both strings.
File "/mnt/c/unified-summarization-master/batcher.py", line 488, in text_generator
extract_ids_str = e.features.feature['extract_ids'].bytes_list.value[0]
IndexError: list index (0) out of range
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/mnt/c/unified-summarization-master/batcher.py", line 408, in fill_example_queue
(article, abstract, extract_ids) = input_gen.next() # read the next example from file. article and abstract are both strings.
File "/mnt/c/unified-summarization-master/batcher.py", line 488, in text_generator
extract_ids_str = e.features.feature['extract_ids'].bytes_list.value[0]
IndexError: list index (0) out of range
Operating Systems: Windows Subsystem for Linux (Ubuntu 18.04)
Do you know why? Thank you very much.