The following command-line arguments are available to configure the execution mode, data paths, embedding settings, and model hyperparameters.
--mode {train,prepro,test,count} (default: 'train')
--data_file (path to data file)
--glove_word_file (path to GloVe file, default: 'glove.840B.300d.txt')
--save (save directory, default: 'HOTPOT')
--word_emb_file (path to word embeddings, default: 'word_emb.json')
--char_emb_file (path to character embeddings, default: 'char_emb.json')
--train_eval_file (path to train/eval JSON, default: 'train_eval.json')
--dev_eval_file (path to dev eval JSON, default: 'dev_eval.json')
--test_eval_file (path to test eval JSON, default: 'test_eval.json')
--word2idx_file (path to word2idx mapping, default: 'word2idx.json')
--char2idx_file (path to char2idx mapping, default: 'char2idx.json')
--idx2word_file (path to idx2word mapping, default: 'idx2word.json')
--idx2char_file (path to idx2char mapping, default: 'idx2char.json')
--train_record_file (path to train pickle, default: 'train_record.pkl')
--dev_record_file (path to dev pickle, default: 'dev_record.pkl')
--test_record_file (path to test pickle, default: 'test_record.pkl')
--glove_char_size (int, default: 94)
--glove_word_size (int, default: 2200000)
--glove_dim (int, default: 300)
--char_dim (int, default: 8)
--para_limit (int, default: 1000)
--ques_limit (int, default: 80)
--sent_limit (int, default: 100)
--char_limit (int, default: 16)
--batch_size (int, default: 64)
--checkpoint (int, default: 1000)
--period (int, default: 100)
--init_lr (float, default: 0.5)
--keep_prob (float, default: 0.8)
--hidden (int, default: 80)
--char_hidden (int, default: 100)
--patience (int, default: 1)
--seed (int, default: 13)
--sp_lambda (float, default: 0.0)
--data_split (str, default: 'train')
--fullwiki (flag, enables fullwiki prefixing for files)
--prediction_file (path to prediction output)
--sp_threshold (float, default: 0.3)