File size: 547 Bytes
66f5d80 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
---
tags:
- nli
---
# Dataset Card for Dataset Name
This dataset inherits from [mnli](https://huggingface.co/datasets/glue/viewer/mnli/train), and the only changes is to downsample to the same size as mednli. It is created via
```python
with open("/path/to/mednli/mli_train_v1.jsonl") as f:
data = [json.loads(line) for line in f.readlines()]
raw_datasets = load_dataset("glue", "mnli")
raw_datasets["train"] = raw_datasets["train"].shuffle(seed=42).select(range(len(data)))
raw_datasets.push_to_hub("cnut1648/mnli_resampled_as_mednli")
``` |