Closed huu4ontocord closed 1 year ago
Here are some samples from writing prompts:
id | prompt | story |
---|---|---|
1 | [ WP ] When you die , you do n't go to the afterlife of you 're religion , you go to the afterlife of the religion whose tenets you followed most closely , knowingly or not . | Thomas loves science fiction , and is pleased to find himself sitting by the park entrance with Arthur C. Clarke ’ s “ Fountains of Paradise ” open in his lap . He must have jogged there , he thinks to himself as he admires his brand new black-and-white Nikes . He stretches out in his black joggers and turns the page . “ But there was no substitute for reality , one should beware of imitations ” , he reads before shutting the book . |
2 | [ CW ] [ PM ] Write your hero into a corner , and let me get them out . | Bob dropped five of the Zeds , reloaded his Colt 45 , and ran up the stairs . Hey ! '' Courtney rushed outside the communications office , her .22 rifle in hand . They 're at the trainstation , just a block from here ! '' It 's probably too late , mate . '' Bob said back , Just look at 'em ! '' |
3 | [ cw ] write about the strangest/scariest/saddest dream you 've ever had in less than 200 words . | The night was as thick and terrifying as any I had ever seen before . All I could hear was the scream of the wind past my ears , the pounding of hooves , huffed horse breaths , and the pounding of my own heart . |
Just in case anyone wants the prompt tag description.
@ontocord , can you improve the issue details having the samples above, please?
Interesting how the [XX] tags are used. I wasn't thinking about those.
I was thinking of Instructions -> answers like "User: write me a story about {stripped_prompt} -> Rosey: Sure, here's a story about {stripped_prompt}: {story}" where stripped_prompt removes things like "write about" "in less than 200 words", etc.
And the inverse "User: What is this story about {story} -> Rosey: I think it's about {striped_prompt}"
You could also do summarization of longer stories into 4 or 5 pointed sentences and ask for an outline. Or you could give an outline and ask Rosey to fill in the story.
For the prompt tag, you could add constraings to the prompts based on the tag. So for [RF], you could add to the end of the actual instruciton: this story could {have happened before or should be able to happen in the real world to unknown people. Not what you think could happen in the future.}
Lmk know if you need more input.
Also these instructions: “write a story about {prompt}, ending with the sentence {last_sentence}”. “write a story about {prompt}, where the beginning of the story is about {summary of the beginning part}”. “write a story about {prompt}, where the middle of the story is about {summary of the middle part}”. “write a story about {prompt}, where the end of the story is about {summary of the end part}”
@ontocord, check this colab notebook out, to see whether I am in the right direction.
You might be interested in the last cell.
Cool - and thank you for putting the [NSFW] flag there. that will help us when we turn on the filter. Also, I think some of the User prompts might be too long - maybe it was adding the story into the user prompt? Also some of the User prompts says "None". You are on the right track! YEAH!
@ontocord, I'm getting terrible results with story summarization. I've tried facebook/bart-large-cnn and llenai/led-large-16384.
When you mentioned summarization, were you thinking about any particular model?
About the NSFW tag, fortunately, It was already on the raw data.
as base case, you could do sliding window of N sentences and run through t5-small or base? also, check out https://colab.research.google.com/drive/1nZx5LRjO61fYprFyqtrwPDLOis6ctR4p?authuser=1 and https://colab.research.google.com/gist/pszemraj/c7dce704516ee33de107e23a6613d613/textsum-summarize-text-files-example.ipynb also cc me on discord and i can tell you more resources for summarization
Thanks for the advice. Check out the updates at colab notebook.
lmk if you pushed a PR?
Closing old data issue.
Use the prompts/story dataset from here: https://www.kaggle.com/datasets/ratthachat/writing-prompts. In addition to the prompts and story, augment with instructions such as “write a story about {prompt}, ending with the sentence {last_sentence}”. “write a story about {prompt}, where the beginning of the story is about {summary of the beginning part}”. “write a story about {prompt}, where the middle of the story is about {summary of the middle part}”. “write a story about {prompt}, where the end of the story is about {summary of the end part}”