数据集:
Wiki-Convert是一个包含90万多个来自英文维基百科的句子注释数据集。它依赖于维基贡献者使用 {{Convert}} 模板形式的注释。
数据集从英文维基百科中提取,因此主要包含英文文本。
json文件中的每一行包含有关源维基百科句子的元数据,以及对一个单独数字的注释,例如下面示例中的数字:number: 10。注释受Numeracy-600K的启发,以句子开头为基准,用长度和偏移量来表示。
{
'id': 1080801, 'UNIQUE_STORY_INDEX': '1080801', 'offset': 83, 'length': 2, 'magnitude': 0, 'comment': "Like all Type UB III submarines, UB-117 carried 10 torpedoes and was armed with a 10 cms deck gun. ''", 'number': 10
}
请参阅 https://github.com/avi-jit/numeracy-literacy 以了解更多详情。
| Tain | Dev | Test | |
|---|---|---|---|
| Input Sentences | 739,583 | 92,447 | 92,449 |
根据MIT许可提供。
@inproceedings{thawani-etal-2021-numeracy,
title = "Numeracy enhances the Literacy of Language Models",
author = "Thawani, Avijit and
Pujara, Jay and
Ilievski, Filip",
booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2021",
address = "Online and Punta Cana, Dominican Republic",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.emnlp-main.557",
pages = "6960--6967",
abstract = "Specialized number representations in NLP have shown improvements on numerical reasoning tasks like arithmetic word problems and masked number prediction. But humans also use numeracy to make better sense of world concepts, e.g., you can seat 5 people in your {`}room{'} but not 500. Does a better grasp of numbers improve a model{'}s understanding of other concepts and words? This paper studies the effect of using six different number encoders on the task of masked word prediction (MWP), as a proxy for evaluating literacy. To support this investigation, we develop Wiki-Convert, a 900,000 sentence dataset annotated with numbers and units, to avoid conflating nominal and ordinal number occurrences. We find a significant improvement in MWP for sentences containing numbers, that exponent embeddings are the best number encoders, yielding over 2 points jump in prediction accuracy over a BERT baseline, and that these enhanced literacy skills also generalize to contexts without annotated numbers. We release all code at https://git.io/JuZXn.",
}
感谢 @avi-jit 添加此数据集。