Add MultiFin high-level v0 datasets, requests, and manifests
Browse files- datasets/multifin/highlevel/v0/clean_meta.json +63 -0
- datasets/multifin/highlevel/v0/test.jsonl +0 -0
- datasets/multifin/highlevel/v0/train.jsonl +0 -0
- datasets/multifin/highlevel/v0/validation.jsonl +0 -0
- manifests/datasets/multifin_highlevel_v0/checksums.sha256 +4 -0
- manifests/datasets/multifin_highlevel_v0/dataset_spec.json +60 -0
- manifests/tasks/multifin_highlevel_topic_v0/task_spec.json +36 -0
- tasks/multifin_highlevel_topic_v0/README.md +35 -0
- tasks/multifin_highlevel_topic_v0/requests/test_requests.jsonl +0 -0
- tasks/multifin_highlevel_topic_v0/requests/train_requests.jsonl +0 -0
- tasks/multifin_highlevel_topic_v0/requests/validation_requests.jsonl +0 -0
datasets/multifin/highlevel/v0/clean_meta.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "multifin_highlevel_v0",
|
| 3 |
+
"config": "all_languages_highlevel",
|
| 4 |
+
"source_dataset": "awinml/MultiFin",
|
| 5 |
+
"splits": {
|
| 6 |
+
"train": {
|
| 7 |
+
"n_in": 6430,
|
| 8 |
+
"n_out": 6430,
|
| 9 |
+
"label_counts": {
|
| 10 |
+
"Tax & Accounting": 2186,
|
| 11 |
+
"Government & Controls": 597,
|
| 12 |
+
"Business & Management": 1249,
|
| 13 |
+
"Industry": 770,
|
| 14 |
+
"Finance": 941,
|
| 15 |
+
"Technology": 687
|
| 16 |
+
},
|
| 17 |
+
"out_file": "data/multifin/processed/multifin_highlevel_train_clean.jsonl"
|
| 18 |
+
},
|
| 19 |
+
"validation": {
|
| 20 |
+
"n_in": 1608,
|
| 21 |
+
"n_out": 1608,
|
| 22 |
+
"label_counts": {
|
| 23 |
+
"Tax & Accounting": 525,
|
| 24 |
+
"Technology": 180,
|
| 25 |
+
"Business & Management": 340,
|
| 26 |
+
"Government & Controls": 149,
|
| 27 |
+
"Finance": 214,
|
| 28 |
+
"Industry": 200
|
| 29 |
+
},
|
| 30 |
+
"out_file": "data/multifin/processed/multifin_highlevel_validation_clean.jsonl"
|
| 31 |
+
},
|
| 32 |
+
"test": {
|
| 33 |
+
"n_in": 2010,
|
| 34 |
+
"n_out": 2010,
|
| 35 |
+
"label_counts": {
|
| 36 |
+
"Finance": 292,
|
| 37 |
+
"Technology": 221,
|
| 38 |
+
"Tax & Accounting": 660,
|
| 39 |
+
"Government & Controls": 166,
|
| 40 |
+
"Business & Management": 402,
|
| 41 |
+
"Industry": 269
|
| 42 |
+
},
|
| 43 |
+
"out_file": "data/multifin/processed/multifin_highlevel_test_clean.jsonl"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
"overall_label_counts": {
|
| 47 |
+
"Tax & Accounting": 3371,
|
| 48 |
+
"Government & Controls": 912,
|
| 49 |
+
"Business & Management": 1991,
|
| 50 |
+
"Industry": 1239,
|
| 51 |
+
"Finance": 1447,
|
| 52 |
+
"Technology": 1088
|
| 53 |
+
},
|
| 54 |
+
"allowed_labels": [
|
| 55 |
+
"Business & Management",
|
| 56 |
+
"Finance",
|
| 57 |
+
"Government & Controls",
|
| 58 |
+
"Industry",
|
| 59 |
+
"Tax & Accounting",
|
| 60 |
+
"Technology"
|
| 61 |
+
],
|
| 62 |
+
"split_policy": "preserve_upstream_train_validation_test"
|
| 63 |
+
}
|
datasets/multifin/highlevel/v0/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datasets/multifin/highlevel/v0/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datasets/multifin/highlevel/v0/validation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
manifests/datasets/multifin_highlevel_v0/checksums.sha256
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
a0517cf8461b517ab5d84adf4f62988f0d8aad75fd92a918e61b18f6f66d41bd data/multifin/processed/multifin_highlevel_train_clean.jsonl
|
| 2 |
+
fde64013f698f4067d9a2a97ebc631c23f0571494080e9cead3aac7e4bed0bb0 data/multifin/processed/multifin_highlevel_validation_clean.jsonl
|
| 3 |
+
f5f515a3ea7ea7b1035fc48f7871931df34ce768e754eb9ce97630dbbdf12fc4 data/multifin/processed/multifin_highlevel_test_clean.jsonl
|
| 4 |
+
d85fbb55759f4411e5e6ec87f5335a57ce0a513bf50b4843ace0a9c8e66e658e data/multifin/processed/multifin_highlevel_clean_meta.json
|
manifests/datasets/multifin_highlevel_v0/dataset_spec.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "multifin_highlevel_v0",
|
| 3 |
+
"dataset_name": "MultiFin High-Level Topic Classification",
|
| 4 |
+
"version": "0.1.0",
|
| 5 |
+
"dataset_folder": "datasets/multifin_highlevel_v0",
|
| 6 |
+
"source": {
|
| 7 |
+
"type": "huggingface",
|
| 8 |
+
"hf_dataset_id": "awinml/MultiFin",
|
| 9 |
+
"hf_config": "all_languages_highlevel"
|
| 10 |
+
},
|
| 11 |
+
"files": {
|
| 12 |
+
"raw_files": {
|
| 13 |
+
"train": "data/multifin/raw/multifin_highlevel_train_raw.jsonl",
|
| 14 |
+
"validation": "data/multifin/raw/multifin_highlevel_validation_raw.jsonl",
|
| 15 |
+
"test": "data/multifin/raw/multifin_highlevel_test_raw.jsonl"
|
| 16 |
+
},
|
| 17 |
+
"raw_meta_file": "data/multifin/raw/multifin_highlevel_raw_meta.json",
|
| 18 |
+
"processed_files": {
|
| 19 |
+
"train": "data/multifin/processed/multifin_highlevel_train_clean.jsonl",
|
| 20 |
+
"validation": "data/multifin/processed/multifin_highlevel_validation_clean.jsonl",
|
| 21 |
+
"test": "data/multifin/processed/multifin_highlevel_test_clean.jsonl"
|
| 22 |
+
},
|
| 23 |
+
"processed_meta_file": "data/multifin/processed/multifin_highlevel_clean_meta.json"
|
| 24 |
+
},
|
| 25 |
+
"label_scheme": {
|
| 26 |
+
"type": "single_label_multiclass",
|
| 27 |
+
"task": "topic_classification",
|
| 28 |
+
"classes": [
|
| 29 |
+
"Technology",
|
| 30 |
+
"Industry",
|
| 31 |
+
"Tax & Accounting",
|
| 32 |
+
"Finance",
|
| 33 |
+
"Government & Controls",
|
| 34 |
+
"Business & Management"
|
| 35 |
+
]
|
| 36 |
+
},
|
| 37 |
+
"split_policy": {
|
| 38 |
+
"type": "preserve_upstream",
|
| 39 |
+
"splits": [
|
| 40 |
+
"train",
|
| 41 |
+
"validation",
|
| 42 |
+
"test"
|
| 43 |
+
]
|
| 44 |
+
},
|
| 45 |
+
"hf_publish": {
|
| 46 |
+
"repo_id": "mmmikolajczak/st312-data",
|
| 47 |
+
"repo_type": "dataset",
|
| 48 |
+
"dataset_root": "datasets/multifin/highlevel/v0",
|
| 49 |
+
"upstream_license": "cc-by-sa-4.0",
|
| 50 |
+
"upstream_license_name": "Creative Commons Attribution Share Alike 4.0 International",
|
| 51 |
+
"upstream_license_url": "https://creativecommons.org/licenses/by-sa/4.0/",
|
| 52 |
+
"upstream_license_note": "License listed on the Hugging Face dataset card for awinml/MultiFin."
|
| 53 |
+
},
|
| 54 |
+
"status": {
|
| 55 |
+
"raw_ingested": true,
|
| 56 |
+
"cleaned": true,
|
| 57 |
+
"requests_built": true,
|
| 58 |
+
"published_to_hf": false
|
| 59 |
+
}
|
| 60 |
+
}
|
manifests/tasks/multifin_highlevel_topic_v0/task_spec.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "TA_TOPIC_MULTIFIN_HIGHLEVEL_v0",
|
| 3 |
+
"task_name": "MultiFin High-Level Topic Classification",
|
| 4 |
+
"version": "0.1.0",
|
| 5 |
+
"task_type": "single_label_multiclass",
|
| 6 |
+
"dataset": {
|
| 7 |
+
"dataset_id": "multifin_highlevel_v0",
|
| 8 |
+
"train_file": "data/multifin/processed/multifin_highlevel_train_clean.jsonl",
|
| 9 |
+
"validation_file": "data/multifin/processed/multifin_highlevel_validation_clean.jsonl",
|
| 10 |
+
"test_file": "data/multifin/processed/multifin_highlevel_test_clean.jsonl"
|
| 11 |
+
},
|
| 12 |
+
"input_schema": {
|
| 13 |
+
"required_fields": ["data.text"],
|
| 14 |
+
"optional_fields": ["data.language"]
|
| 15 |
+
},
|
| 16 |
+
"output_schema": {
|
| 17 |
+
"type": "json_object",
|
| 18 |
+
"strict_single_key": "topic",
|
| 19 |
+
"allowed_values": [
|
| 20 |
+
"Technology",
|
| 21 |
+
"Industry",
|
| 22 |
+
"Tax & Accounting",
|
| 23 |
+
"Finance",
|
| 24 |
+
"Government & Controls",
|
| 25 |
+
"Business & Management"
|
| 26 |
+
]
|
| 27 |
+
},
|
| 28 |
+
"prompt_template": {
|
| 29 |
+
"system": "You are a financial topic classifier. Return ONLY a JSON object with exactly one key: \"topic\". The value must be exactly one of the following labels: \"Technology\", \"Industry\", \"Tax & Accounting\", \"Finance\", \"Government & Controls\", \"Business & Management\". Do not include any extra text.",
|
| 30 |
+
"user": "Classify the following financial text into exactly one high-level topic category.\n\nText: {{data.text}}"
|
| 31 |
+
},
|
| 32 |
+
"metrics": [
|
| 33 |
+
"accuracy",
|
| 34 |
+
"macro_f1"
|
| 35 |
+
]
|
| 36 |
+
}
|
tasks/multifin_highlevel_topic_v0/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MultiFin High-Level Topic Task (v0)
|
| 2 |
+
|
| 3 |
+
Task module for 6-way topic classification on `multifin_highlevel_v0`.
|
| 4 |
+
|
| 5 |
+
## Task ID
|
| 6 |
+
`TA_TOPIC_MULTIFIN_HIGHLEVEL_v0`
|
| 7 |
+
|
| 8 |
+
## Dataset module
|
| 9 |
+
- Dataset ID: `multifin_highlevel_v0`
|
| 10 |
+
- Train: `data/multifin/processed/multifin_highlevel_train_clean.jsonl`
|
| 11 |
+
- Validation: `data/multifin/processed/multifin_highlevel_validation_clean.jsonl`
|
| 12 |
+
- Test: `data/multifin/processed/multifin_highlevel_test_clean.jsonl`
|
| 13 |
+
|
| 14 |
+
## Labels
|
| 15 |
+
- `Technology`
|
| 16 |
+
- `Industry`
|
| 17 |
+
- `Tax & Accounting`
|
| 18 |
+
- `Finance`
|
| 19 |
+
- `Government & Controls`
|
| 20 |
+
- `Business & Management`
|
| 21 |
+
|
| 22 |
+
## Output schema (strict)
|
| 23 |
+
Return ONLY:
|
| 24 |
+
```json
|
| 25 |
+
{"topic": "Finance"}
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Rules:
|
| 29 |
+
- exactly one key: `topic`
|
| 30 |
+
- value must be one of the six allowed labels
|
| 31 |
+
- no extra keys
|
| 32 |
+
- no extra text
|
| 33 |
+
|
| 34 |
+
## Scripts
|
| 35 |
+
- Reward parser: `scripts/tasks/multifin_highlevel_topic_v0/reward_multifin_highlevel.py`
|
tasks/multifin_highlevel_topic_v0/requests/test_requests.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/multifin_highlevel_topic_v0/requests/train_requests.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/multifin_highlevel_topic_v0/requests/validation_requests.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|