数据集:
这是PLOD数据集的存储库,该数据集已发布在LREC 2022会议上。该数据集可用于构建用于缩写检测任务的序列标注模型。
我们提供了两个版本的数据集 - 过滤版本(Filtered)和未过滤版本(Unfiltered)。详细描述可参见我们的论文。
通过 Huggingface Datasets here 和 CONLL format is present here 可获取过滤版本。
通过 Huggingface Datasets here 和 CONLL format is present here 可获取未过滤版本。
我们用于零样本测试的数据是 SDU Shared Task 和 available here 。
PLOD数据集是一个英文数据集,标记了文本中的缩写和全名。该数据集是从PLOS期刊的文本中收集的,用于支持自然语言处理任务中的缩写检测,并覆盖了科学领域。
该数据集主要支持缩写检测任务。还通过Acronym Detection Shared Task在AAAI 2022的Scientific Document Understanding (SDU) 研讨会上提供的训练+开发集进行了测试。
英文
典型的数据点包括一个ID,文本中的一组标记(tokens),通过Spacy NER获取的相应标记的一组词性标记(pos_tags),以及一个限定为“AC”表示缩写和“LF”表示全名的一组NER标签(ner_tags)。
数据集中的一个示例:{'id': '1', 'tokens': ['Study', '-', 'specific', 'risk', 'ratios', '(', 'RRs', ')', 'and', 'mean', 'BW', 'differences', 'were', 'calculated', 'using', 'linear', 'and', 'log', '-', 'binomial', 'regression', 'models', 'controlling', 'for', 'confounding', 'using', 'inverse', 'probability', 'of', 'treatment', 'weights', '(', 'IPTW', ')', 'truncated', 'at', 'the', '1st', 'and', '99th', 'percentiles', '.'], 'pos_tags': [8, 13, 0, 8, 8, 13, 12, 13, 5, 0, 12, 8, 3, 16, 16, 0, 5, 0, 13, 0, 8, 8, 16, 1, 8, 16, 0, 8, 1, 8, 8, 13, 12, 13, 16, 1, 6, 0, 5, 0, 8, 13], 'ner_tags': [0, 0, 0, 3, 4, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4, 4, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]}
| Train | Valid | Test | |
|---|---|---|---|
| Filtered | 112652 | 24140 | 24140 |
| Unfiltered | 113860 | 24399 | 24399 |
从PLOS期刊在线提取数据,然后进行分词和归一化处理。
谁是源语言制造商?PLOS期刊
该数据集最初由Leonardo Zilio、Hadeel Saadany、Prashant Sharma、Diptesh Kanojia、Constantin Orasan创建。
CC-BY-SA 4.0
[需要更多信息]
我们使用 spaCy transformers 库中的自定义NER流水线来训练我们的模型。该库支持使用任何在 HuggingFace repository 上提供的预训练语言模型进行训练。请参阅这些网站上的说明,以设置自己的自定义训练并使用我们的数据集来重现使用Spacy进行的实验。
或者
但是,您也可以使用我们提供的Python笔记本来重现实验。该笔记本使用HuggingFace Trainer类执行相同的实验。可以从下面链接的模型自述文件中获取精确的超参数。在开始之前,请执行以下步骤:
git clone https://github.com/surrey-nlp/PLOD-AbbreviationDetection cd PLOD-AbbreviationDetection pip install -r requirements.txt
现在,您可以使用该笔记本来重现实验。
我们最好的模型存储在HuggingFace模型存储库中。
| Models | 12310321 | 12311321 | Description |
|---|---|---|---|
| 12312321 | 12313321 | -soon- | Fine-tuning on the RoBERTa large language model |
| 12314321 | -soon- | 12315321 | Fine-tuning on the RoBERTa base language model |
| 12316321 | 12317321 | -soon- | Fine-tuning on the AlBERT large-v2 language model |
在上面提供的链接上,可以通过Web浏览器使用Inference API来使用模型。我们提供了一些示例用于测试。
您可以使用上面的HuggingFace模型链接找到使用该模型的Python本地使用说明,使用Git存储库中提供的笔记本。