-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fix for https://github.com/bigscience-workshop/promptsource/issues/20 #21
Fix for https://github.com/bigscience-workshop/promptsource/issues/20 #21
Conversation
Urmish
commented
May 23, 2021
- Changes the template.jinja before its saved
- Changes the keys in examples after its loaded
Great, thanks! A couple of thoughts:
What do you think? |
Creating a utility function and (2) makes sense. Can you expand a bit on the dataset schema part. I am not sure if I follow which dictionary you are referring to. |
Hi,
Thanks! |
I see. Let me check how to do that. A quick way dint work as I am not sure if the dataset.features field is mutable. Running into |
@stephenbach - Made the requested changes. But that will still not solve the problem as the text we enter for the template -
Has label-coarse and does lead to the error when the template is applied -
So the replace statement for template.jinja will still be needed to render it correctly |
I was thinking that in the template it would be written
We'll have to say in the template writing guide that you can't use dashes as key names in Jinja, but since the features are displayed with '_', users can just code against the displayed examples. |
I see. Thanks for the clarification. Then this branch has the required fixes. Do you want to give it a try @stephenbach ? |
Right, then I think it's good to go. I will merge it in, thanks! |
@Urmish looks like it's failing code quality checks. Can you add a commit running
|
@stephenbach - Done |
Sorry, I dint realize we had code quality checks setup until you mentioned it :) |
Having some weird issue with black (#39). Will just merge in for now. |