law_stack_exchange
Note
ID: catalog.cards.law_stack_exchange | Type: TaskCard
{
"loader": {
"path": "jonathanli/law-stack-exchange",
"type": "load_hf"
},
"preprocess_steps": [
{
"mix": {
"test": "train",
"train": "test",
"validation": "validation"
},
"type": "split_random_mix"
},
{
"field_to_field": {
"text_label": "label"
},
"type": "rename_fields"
},
{
"fields": [
"title",
"body"
],
"to_field": "text",
"type": "list_field_values"
},
{
"field": "text",
"separator": ". ",
"to_field": "text",
"type": "join_str"
},
{
"fields": {
"classes": [
"business",
"civil-law",
"constitutional-law",
"contract",
"contract-law",
"copyright",
"criminal-law",
"employment",
"intellectual-property",
"internet",
"liability",
"licensing",
"privacy",
"software",
"tax-law",
"trademark"
],
"text_type": "text",
"type_of_class": "topic"
},
"type": "add_fields"
}
],
"task": "tasks.classification.multi_class",
"templates": "templates.classification.multi_class.all",
"type": "task_card"
}