Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.31 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.31 KB

DataSet

参考https://github.com/abisee/cnn-dailymail

raw corpus

command for data preprocessing

python data/make_datafiles.py /path/to/unzipped/cnn_stories.tgz /path/to/unzipped/dailymail_stories.tgz

generate data for model

Code with python3

参考https://github.com/abisee/pointer-generator

Run training

python run_summarization.py --mode=train --data_path=/path/to/chunked/train_* --vocab_path=/path/to/vocab --log_root=/path/to/a/log/directory --exp_name=myexperiment

Run eval

python run_summarization.py --mode=eval --data_path=/path/to/chunked/val_* --vocab_path=/path/to/vocab --log_root=/path/to/a/log/directory --exp_name=myexperiment

Run beam search decoding

python run_summarization.py --mode=decode --data_path=/path/to/chunked/val_* --vocab_path=/path/to/vocab --log_root=/path/to/a/log/directory --exp_name=myexperiment