-
Run
pip install -e .to install this package -
Run
pip install -r requirements.txt -
Go to our shared google drive folder to download vocab files. The name of vocab files indicates the corresponding dataset.
vocab_7ds_5w.txtmeans that this is a meta vocab that contains the top 50000 frequent words of all the 7 supported datasets. You can just download this file for meta experiments -
Go to
pointer_generator/utils/config.pyand update all the configs at the bottom of the file under###New configs###.dataset_cache_dirandvocab_cache_dirare places to store datasets and vocab.meta_vocab_fileis the name of the vocab file that you're using (downloaded from google drive). Themeta_vocab_fileis assumed to locate undervocab_cache_dir. Updatemeta_vocab_sizeif you use a vocab with size larger than 50000, likevocab_7ds_7w.txt. -
Run
meta_train.py,meta_test.py, andmeta_eval.py