Skip to content
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

spar mt prompt invar #184

Merged
merged 55 commits into from
Apr 20, 2023
Merged

spar mt prompt invar #184

merged 55 commits into from
Apr 20, 2023

Conversation

ChristyKoh
Copy link
Collaborator

@ChristyKoh ChristyKoh commented Apr 12, 2023

Fixes #172

  • add merge_templates_from method to DatasetTemplates
  • generate combined templates.yaml when PromptConfig is initialized

currently, checks for alignment of col number and ClassLabel classes

ChristyKoh and others added 30 commits March 14, 2023 05:16
elk/extraction/extraction.py Outdated Show resolved Hide resolved
elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
@ChristyKoh ChristyKoh marked this pull request as ready for review April 12, 2023 20:24
@ChristyKoh ChristyKoh self-assigned this Apr 12, 2023
Copy link
Collaborator

@lauritowal lauritowal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull-request! Just tried it out and it seems to work. You might want to split up your code into multiple functions to make it a bit more readable. I've added some comments.

elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
elk/extraction/prompt_loading.py Outdated Show resolved Hide resolved
@lauritowal lauritowal merged commit 89a2122 into main Apr 20, 2023
4 checks passed
@lauritowal lauritowal deleted the spar_mt_prompt_invar branch April 20, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combine prompts to evaluate multilingual prompt invariance
3 participants