Closed bertagknowles closed 5 years ago
See paper for details!
According to the paper "To induce summarization behavior we add the text TL;DR: ". Where do we add the document text to be summarized? Is it after this command at the prompt - "python3 src/interactive_conditional_samples.py " ? I tried to run this, but a huge error pops up if the sample text is long.
unfortunately I'm not sure if you can add newlines when using interactive_conditional_samples, so you may need to tweak the script - but normally it would be
[article]
TL;DR:
For other googlers, section 3.6 of the paper relates to this, but the method is described in very high-level terms.
Also look at interactive_conditional_samples.py
@HaleTom if you have specific questions about the methodology feel free to ask! it really is very simple
It seems the summary is based on the context of trained data and not the document I present to it. The model forms opinions on the global news and entertainment data and not on specific topic that I want.
I would guess that's probably a bug in your code
_Example 9. Summarization
Input:
norway delivered a diplomatic protest to russia on monday after three norwegian fisheries research expeditions were barred from russian waters . the norwegian research ships were to continue an annual program of charting fish resources shared by the two countries in the barents sea region TL;DR:
Output:
Norwegian fishing boat was caught in a fishing accident in the Barents Sea.
The Norwegian fishing vessel was caught in a fishing accident in the barents sea.
Norway's Fisheries Research Program (FPR) was suspended on Tuesday after a Norwegian ship carrying a Norwegian fishing boat was caught in a fishing accident in the barents sea region TL;DR: Norway's Fisheries Research Program was suspended on Tuesday after a Norwegian ship carrying a Norwegian fishing boat was caught in a fishing accident in the barents sea region.
The Norwegian fishing vessel was caught in a fishing accident in the barents sea.
The Norwegian fishing vessel was caught in a fishing accident in the barents sea.
The Norwegian fishing vessel was caught in a fishing accident in the barents sea.
I don't think the summarization mode is implemented in the src
Maybe the model was only trained for content generation, not text summarization.
This worked for me python src/interactive_conditional_samples.py --nsamples=3 --length=100 --temperature=1
Then added [article] TL;DR:
How can I create an abstractive summary of a text document?