euroeval.prompt_templates.simplification
[docs]
module
euroeval.prompt_templates.simplification
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | """Templates for the Simplification task."""
from ..data_models import PromptConfig
from ..languages import DUTCH, ENGLISH
SIMPL_TEMPLATES = {
ENGLISH: PromptConfig(
default_prompt_prefix="The following are documents with accompanying "
"simplifications.",
default_prompt_template="Document: {text}\nSimplification: {target_text}",
default_instruction_prompt="Document: {text}\n\nWrite a simplification "
"of the above document.",
default_prompt_label_mapping=dict(),
),
DUTCH: PromptConfig(
default_prompt_prefix="Hieronder volgen documenten met bijbehorende "
"versimpelingen.",
default_prompt_template="Document: {text}\nVersimpeling: {target_text}",
default_instruction_prompt="Document: {text}\n\nVersimpel het "
"bovenstaande document.",
default_prompt_label_mapping=dict(),
),
}
|