-
Notifications
You must be signed in to change notification settings - Fork 365
adding GEM/webnlg prompts #743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding GEM/webnlg prompts #743
Conversation
Adding multi-target + PALM prompt
adding PALM and multi-target
I've added Multi-refs |
Hey @jordiclive ! When I run this I get a Example: For import datasets
from promptsource.templates import DatasetTemplates
template = DatasetTemplates("GEM/web_nlg", "ru")
data = datasets.load_dataset("GEM/web_nlg", "ru")
example = data['validation'][0]
prompt = template['PALM_prompt'].apply(example)
print(prompt)
|
@jon-tow, I think you were not working with the newest eval-hackathon which has the multi-ref changes. I have now merged that into this . |
Prompts look good to me. Do we have someone who could translate some of the Russian prompts so we don't only rely on English? |
Adding Russian versions of Prompts.
3e41305c-5461-4cf3-853d-8a6fb5747623: !Template | ||
answer_choices: null | ||
id: 3e41305c-5461-4cf3-853d-8a6fb5747623 | ||
jinja: "I will verbalize an abstract representation of a sentence in natural language.\ | ||
\ To do so, I will first show the representation and then the natural language.\ | ||
\ The text needs to include all of the information in the representation.\n\n\ | ||
{{input | join(\", \")}} {% for i in references %}\n ||| {{ i }} \n{% endfor\ | ||
\ %}" | ||
metadata: !TemplateMetadata | ||
choices_in_prompt: false | ||
metrics: | ||
- BLEU | ||
- ROUGE | ||
original_task: true | ||
name: PALM_prompt | ||
reference: used-in-PALM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe @sebastianGehrmann shared some NLG prompts for PALM.
GEM/webnlg houses all constituents, and challenge sets. Also added Russian prompts with minimal changes, as input triple set is still english.