Upload X-ray modality splits
Browse files- README.md +41 -0
- dataset_dict.json +1 -0
- test/data-00000-of-00001.arrow +3 -0
- test/dataset_info.json +32 -0
- test/state.json +13 -0
- train/data-00000-of-00001.arrow +3 -0
- train/dataset_info.json +32 -0
- train/state.json +13 -0
- val/data-00000-of-00001.arrow +3 -0
- val/dataset_info.json +32 -0
- val/state.json +13 -0
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ROCOv2 X-ray Dataset
|
| 2 |
+
|
| 3 |
+
This dataset contains X-ray imaging data from the ROCOv2 radiology dataset.
|
| 4 |
+
|
| 5 |
+
## Dataset Structure
|
| 6 |
+
|
| 7 |
+
- **caption**: Medical description text
|
| 8 |
+
- **modality**: Imaging modality (X-ray)
|
| 9 |
+
- **modality_id**: Numerical modality ID
|
| 10 |
+
- **caption_length**: Number of words in caption
|
| 11 |
+
- **length_category**: Short/medium/long categorization
|
| 12 |
+
- **original_index**: Index from original dataset
|
| 13 |
+
|
| 14 |
+
## Splits
|
| 15 |
+
|
| 16 |
+
- **train**: 154 samples
|
| 17 |
+
- **val**: 19 samples
|
| 18 |
+
- **test**: 20 samples
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from datasets import load_dataset
|
| 24 |
+
|
| 25 |
+
# Load the dataset
|
| 26 |
+
dataset = load_dataset("WafaaFraih/rocov2-modality-x-ray")
|
| 27 |
+
|
| 28 |
+
# Access splits
|
| 29 |
+
train_data = dataset['train']
|
| 30 |
+
val_data = dataset['val']
|
| 31 |
+
test_data = dataset['test']
|
| 32 |
+
|
| 33 |
+
# Example usage
|
| 34 |
+
for sample in train_data:
|
| 35 |
+
print(f"Caption: {sample['caption']}")
|
| 36 |
+
print(f"Modality: {sample['modality']}")
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Citation
|
| 40 |
+
|
| 41 |
+
Please cite the original ROCOv2 dataset if you use this data.
|
dataset_dict.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"splits": ["train", "val", "test"]}
|
test/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bcaea5ad15ce6f402b399cd0ee2dfc20dcebeab3b4047ea3b77a4a0501cc5950
|
| 3 |
+
size 2856
|
test/dataset_info.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"caption": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"modality": {
|
| 10 |
+
"dtype": "string",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"modality_id": {
|
| 14 |
+
"dtype": "int64",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"caption_length": {
|
| 18 |
+
"dtype": "int64",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"length_category": {
|
| 22 |
+
"dtype": "string",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"original_index": {
|
| 26 |
+
"dtype": "int64",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"homepage": "",
|
| 31 |
+
"license": ""
|
| 32 |
+
}
|
test/state.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "70fda13d2ba331f8",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {},
|
| 10 |
+
"_format_type": null,
|
| 11 |
+
"_output_all_columns": false,
|
| 12 |
+
"_split": null
|
| 13 |
+
}
|
train/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3addea109f60aa2871e9069195a3b501d7d2e85a55c54feabe7d38ca7674755
|
| 3 |
+
size 13352
|
train/dataset_info.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"caption": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"modality": {
|
| 10 |
+
"dtype": "string",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"modality_id": {
|
| 14 |
+
"dtype": "int64",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"caption_length": {
|
| 18 |
+
"dtype": "int64",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"length_category": {
|
| 22 |
+
"dtype": "string",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"original_index": {
|
| 26 |
+
"dtype": "int64",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"homepage": "",
|
| 31 |
+
"license": ""
|
| 32 |
+
}
|
train/state.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "fb4ed2fa120d34ef",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {},
|
| 10 |
+
"_format_type": null,
|
| 11 |
+
"_output_all_columns": false,
|
| 12 |
+
"_split": null
|
| 13 |
+
}
|
val/data-00000-of-00001.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6c06173eb9e76b78fa0425dfa5848800b0e54a101b394bb2e72821089b0abbf
|
| 3 |
+
size 2760
|
val/dataset_info.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"caption": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"modality": {
|
| 10 |
+
"dtype": "string",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"modality_id": {
|
| 14 |
+
"dtype": "int64",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"caption_length": {
|
| 18 |
+
"dtype": "int64",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"length_category": {
|
| 22 |
+
"dtype": "string",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"original_index": {
|
| 26 |
+
"dtype": "int64",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"homepage": "",
|
| 31 |
+
"license": ""
|
| 32 |
+
}
|
val/state.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "545f10c2532bd103",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {},
|
| 10 |
+
"_format_type": null,
|
| 11 |
+
"_output_all_columns": false,
|
| 12 |
+
"_split": null
|
| 13 |
+
}
|