File size: 1,372 Bytes
86ecd3d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# Cloze Test Dataset
### Data Example
```
{
"story":
"一只猫望着窗外飞翔的鸟儿馋涎欲滴,但自己又捕捉不到。于是它便想了一个法子。它给那些鸟儿们寄去请柬,邀请他们来参加自己的生日宴会。<mask>鸟儿一进来,猫就关上了门。鸟儿们彻底入了虎穴,被猫一只一只抓来吃掉了。",
"plot0":
"可是没有一只鸟儿愿意来。",
"plot1":
"有些单纯的鸟儿赴宴来了。",
"label":
"1"
}
```
- "story" (`str`):input story,`<mask>` means the removed sentence
- "plot0" (`str`):candidate #0
- "plot1" (`str`):candidate #1
- "label" (`str`): 0 means candidate #0 is correct, while 1 means candidate #1 is correct.
### Citation
```
@misc{guan2021lot,
title={LOT: A Benchmark for Evaluating Chinese Long Text Understanding and Generation},
author={Jian Guan and Zhuoer Feng and Yamei Chen and Ruilin He and Xiaoxi Mao and Changjie Fan and Minlie Huang},
year={2021},
eprint={2108.12960},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```
### Evaluation
The prediction result should have the same format with `test.jsonl`
```shell
python eval.py prediction_file test.jsonl
```
We use accuracy as the evaluation metric. The output of the script `eval.py` is a dictionary as follows:
```python
{"accuracy": _}
```
|