textsum-gan icon indicating copy to clipboard operation
textsum-gan copied to clipboard

can I use this code to generate a summary from a new source text

Open hanyegirl opened this issue 5 years ago • 7 comments

i want to generate a summary ,and the source text is not in the text.bin ,just an ordinary English text,what can i do for this task ,thank you for your any help

hanyegirl avatar Jul 08 '19 07:07 hanyegirl

The processing from text data to .bin file is referenced by https://github.com/abisee/cnn-dailymail, you can refer to this code to process your own data.

iwangjian avatar Jul 08 '19 09:07 iwangjian

The processing from text data to .bin file is referenced by https://github.com/abisee/cnn-dailymail, you can refer to this code to process your own data. then use this python3 main.py --mode=decode --data_path=./data/test.bin --vocab_path=./data/vocab --log_root=./log --single_pass=True to generate the relative summary?

hanyegirl avatar Jul 08 '19 10:07 hanyegirl

Yes, but firstly you need to train a model using your own data following the instructions in README.md, and then use the trained model to generate the relative summary.

iwangjian avatar Jul 08 '19 12:07 iwangjian

thank you ,your advice is very important to me

hanyegirl avatar Jul 08 '19 12:07 hanyegirl

May I ask, after you use the new data set to train the model, what is the test result? At present, I am also doing some related work, so I would like to consult you.

HunterYCG avatar Nov 22 '19 02:11 HunterYCG

If you use a new dataset to train the model, the test input are texts (or articles) in your test set, the test output are corresponding generated summaries.

iwangjian avatar Nov 22 '19 02:11 iwangjian

Thank you very much for your reply.

HunterYCG avatar Nov 22 '19 02:11 HunterYCG