Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K - 10K
ArXiv:
License:
Delete PLOD-CW.py
Browse files- PLOD-CW.py +0 -84
PLOD-CW.py
DELETED
@@ -1,84 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
import datasets
|
4 |
-
from typing import List
|
5 |
-
|
6 |
-
logger = datasets.logging.get_logger(__name__)
|
7 |
-
|
8 |
-
|
9 |
-
_CITATION = """
|
10 |
-
"""
|
11 |
-
|
12 |
-
_DESCRIPTION = """
|
13 |
-
This is the dataset repository for a subset of the PLOD Dataset published at LREC 2022 (from cleaned portion accepted at LREC COLING 2024).
|
14 |
-
The dataset can help build sequence labelling models for the task Abbreviation and Long form Detection.
|
15 |
-
"""
|
16 |
-
|
17 |
-
class PLODfilteredConfig(datasets.BuilderConfig):
|
18 |
-
"""BuilderConfig for PLOD-CW"""
|
19 |
-
|
20 |
-
def __init__(self, **kwargs):
|
21 |
-
"""BuilderConfig for PLOD-CW.
|
22 |
-
Args:
|
23 |
-
**kwargs: keyword arguments forwarded to super.
|
24 |
-
"""
|
25 |
-
super(PLODfilteredConfig, self).__init__(**kwargs)
|
26 |
-
|
27 |
-
|
28 |
-
class PLODfilteredConfig(datasets.GeneratorBasedBuilder):
|
29 |
-
"""PLOD CW dataset."""
|
30 |
-
|
31 |
-
BUILDER_CONFIGS = [
|
32 |
-
PLODfilteredConfig(name="PLOD-CW", version=datasets.Version("0.0.5"), description="PLOD CW dataset for NLP 2024"),
|
33 |
-
]
|
34 |
-
|
35 |
-
def _info(self):
|
36 |
-
return datasets.DatasetInfo(
|
37 |
-
description=_DESCRIPTION,
|
38 |
-
features=datasets.Features(
|
39 |
-
{
|
40 |
-
# "id": datasets.Value("string"),
|
41 |
-
"tokens": datasets.Sequence(datasets.Value("string")),
|
42 |
-
"pos_tags": datasets.Sequence(
|
43 |
-
datasets.features.ClassLabel(
|
44 |
-
names=[
|
45 |
-
"ADJ",
|
46 |
-
"ADP",
|
47 |
-
"ADV",
|
48 |
-
"AUX",
|
49 |
-
"CONJ",
|
50 |
-
"CCONJ",
|
51 |
-
"DET",
|
52 |
-
"INTJ",
|
53 |
-
"NOUN",
|
54 |
-
"NUM",
|
55 |
-
"PART",
|
56 |
-
"PRON",
|
57 |
-
"PROPN",
|
58 |
-
"PUNCT",
|
59 |
-
"SCONJ",
|
60 |
-
"SYM",
|
61 |
-
"VERB",
|
62 |
-
"X",
|
63 |
-
"SPACE"
|
64 |
-
]
|
65 |
-
)
|
66 |
-
),
|
67 |
-
"ner_tags": datasets.Sequence(
|
68 |
-
datasets.features.ClassLabel(
|
69 |
-
names=[
|
70 |
-
"B-O",
|
71 |
-
"B-AC",
|
72 |
-
"I-AC",
|
73 |
-
"B-LF",
|
74 |
-
"I-LF"
|
75 |
-
]
|
76 |
-
)
|
77 |
-
),
|
78 |
-
}
|
79 |
-
),
|
80 |
-
supervised_keys=None,
|
81 |
-
homepage="https://github.com/surrey-nlp/PLOD-AbbreviationDetection",
|
82 |
-
citation=_CITATION,
|
83 |
-
)
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|