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

Add swiss legal evals as new community tasks #389

Open
wants to merge 51 commits into
base: main
Choose a base branch
from

Conversation

JoelNiklaus
Copy link
Contributor

Adds new community tasks with swiss legal evaluations. Currently translation tasks are supported but others may follow in the future.

@clefourrier
Copy link
Member

clefourrier commented Nov 12, 2024

@hynky1999 tagging you if you've got a couple minutes to check the templating when back from the offsite

community_tasks/swiss_legal_evals.py Outdated Show resolved Hide resolved
community_tasks/swiss_legal_evals.py Outdated Show resolved Hide resolved
community_tasks/swiss_legal_evals.py Outdated Show resolved Hide resolved
community_tasks/swiss_legal_evals.py Outdated Show resolved Hide resolved
community_tasks/swiss_legal_evals.py Show resolved Hide resolved
community_tasks/swiss_legal_evals.py Outdated Show resolved Hide resolved
@hynky1999
Copy link
Collaborator

Re templates:
We don't have any template for translation tasks atm.
There are many variants to go with (see the image below), but I would prefer going with the [src]: [input] [tgt]: (A variant). Since translation is inherently cross-lingual tasks and it's not clear which language we should use (target or source?), such template allows us to be independant on language (the language labels are kinda standardized, but yeah they will be in latin).

@JoelNiklaus
Have you experimented different prompt formats?

image Source: https://arxiv.org/pdf/2301.07069

I can quickly make a PR for the translation template and we can convert it to that.

@JoelNiklaus
Copy link
Contributor Author

I haven't experimented with prompts yet. Yes, going with variant A sounds good.

Thanks so much!

@JoelNiklaus
Copy link
Contributor Author

Btw. what is the reason you are not using the metrics from evaluate?

@clefourrier
Copy link
Member

clefourrier commented Nov 13, 2024

Evaluate is no longer actively maintained (it's indicated in the Github readme). We also wanted lighteval to be light, and not rely on a heap of dependencies.

@JoelNiklaus
Copy link
Contributor Author

JoelNiklaus commented Nov 13, 2024

I see. I used the direct implementation for COMET and METEOR, rather than evaluate.

@NathanHB
Copy link
Member

PR looks great ! Do the results on your evals look sound ?
Also, you can use the pre-commit hooks to format the files and fix the CI :)

pip install pre-commit
pre-commit install
pre-commit run --all-files

@JoelNiklaus
Copy link
Contributor Author

Great, thanks!
Just ran the pre-commit hooks.

Couldn't run the evals yet because of the judge prompt. Hope to do that soon.

JoelNiklaus referenced this pull request Nov 20, 2024
* implement tranlsation prompt

* add small coment about tranlsation prompt

* change formatting to reformat language dependant  parts

---------

Co-authored-by: Clémentine Fourrier <[email protected]>
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.

4 participants