unfair_tos
Note
ID: catalog.cards.unfair_tos | Type: TaskCard
{
"loader": {
"name": "unfair_tos",
"path": "lex_glue",
"type": "load_hf"
},
"preprocess_steps": [
{
"mappers": {
"labels": {
"0": "Limitation of liability",
"1": "Unilateral termination",
"2": "Unilateral change",
"3": "Content removal",
"4": "Contract by using",
"5": "Choice of law",
"6": "Jurisdiction",
"7": "Arbitration"
}
},
"process_every_value": true,
"type": "map_instance_values"
},
{
"fields": {
"classes": [
"Limitation of liability",
"Unilateral termination",
"Unilateral change",
"Content removal",
"Contract by using",
"Choice of law",
"Jurisdiction",
"Arbitration"
],
"text_type": "text",
"type_of_classes": "contractual clauses"
},
"type": "add_fields"
},
{
"mappers": {
"labels": {
"[]": [
"none"
]
}
},
"strict": false,
"type": "map_instance_values"
}
],
"sampler": {
"choices": "classes",
"labels": "labels",
"type": "diverse_labels_sampler"
},
"task": "tasks.classification.multi_label",
"templates": "templates.classification.multi_label.all",
"type": "task_card"
}