|
20 | 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
21 | 21 | # SOFTWARE. |
22 | 22 |
|
23 | | -from functools import partial |
24 | | -from itertools import permutations |
25 | | - |
26 | | -from langcodes import Language as LangCodeLanguage |
27 | | -from langcodes import standardize_tag |
28 | 23 |
|
29 | 24 | from lighteval.metrics.dynamic_metrics import ( |
30 | 25 | LogLikelihoodAccMetric, |
31 | | - MultilingualQuasiExactMatchMetric, |
32 | | - MultilingualQuasiF1ScoreMetric, |
33 | 26 | ) |
34 | | -from lighteval.metrics.metrics import Metrics |
35 | | -from lighteval.metrics.normalizations import LogProbCharNorm, LogProbPMINorm, LogProbTokenNorm |
36 | | -from lighteval.tasks.default_prompts import LETTER_INDICES |
| 27 | +from lighteval.metrics.normalizations import LogProbCharNorm, LogProbTokenNorm |
37 | 28 | from lighteval.tasks.lighteval_task import LightevalTaskConfig |
38 | | -from lighteval.tasks.multilingual.adapters import ( |
39 | | - agieval_adapter, |
40 | | - alghafa_adapter, |
41 | | - ceval_adapter, |
42 | | - enem_adapter, |
43 | | - get_m3exam_adapter, |
44 | | - get_mkqa_adapter, |
45 | | - sciqa_adapter, |
46 | | - thai_exams_adapter, |
47 | | - winogrand_adapter, |
48 | | - xcodah_adapter, |
49 | | -) |
50 | | -from lighteval.tasks.multilingual.utils.task_utils import get_metrics_for_formulation, normalize_subset |
51 | | -from lighteval.tasks.templates.boolq import get_boolq_prompt_function |
52 | | -from lighteval.tasks.templates.continuation import get_continuation_prompt_function |
53 | | -from lighteval.tasks.templates.copa import get_copa_prompt_function |
54 | | -from lighteval.tasks.templates.hellaswag import get_hellaswag_prompt_function |
55 | | -from lighteval.tasks.templates.multichoice import get_mcq_prompt_function |
| 29 | +from lighteval.tasks.multilingual.utils.task_utils import get_metrics_for_formulation |
56 | 30 | from lighteval.tasks.templates.nli import get_nli_prompt_function |
57 | | -from lighteval.tasks.templates.qa import get_qa_prompt_function |
58 | | -from lighteval.tasks.templates.translation import get_translation_prompt_function |
59 | 31 | from lighteval.tasks.templates.utils.formulation import ( |
60 | 32 | CFFormulation, |
61 | 33 | HybridFormulation, |
62 | 34 | MCFFormulation, |
63 | 35 | ) |
64 | | -from lighteval.tasks.templates.utils.translation_literals import TRANSLATION_LITERALS |
65 | | -from lighteval.utils.language import Language, iso_639_3_ind_to_iso_639_3_macro, manage_duplicate_language_codes |
| 36 | +from lighteval.utils.language import Language |
| 37 | + |
66 | 38 |
|
67 | 39 | # African XNLI: African XNLI |
68 | 40 | # From https://arxiv.org/abs/2406.03368. Human translated MMLU. |
|
0 commit comments