Datasets:
Tasks:
Token Classification
Modalities:
Text
Languages:
English
Size:
100K - 1M
ArXiv:
Tags:
abbreviation-detection
License:
Commit
·
4575131
1
Parent(s):
daeb3bd
cahngeS
Browse files- PLOD-filtered.py +10 -3
PLOD-filtered.py
CHANGED
|
@@ -14,10 +14,13 @@ This is the dataset repository for PLOD Dataset accepted to be published at LREC
|
|
| 14 |
The dataset can help build sequence labelling models for the task Abbreviation Detection.
|
| 15 |
"""
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
class PLODfilteredConfig(datasets.BuilderConfig):
|
| 23 |
"""BuilderConfig for Conll2003"""
|
|
@@ -89,6 +92,10 @@ class PLODfilteredConfig(datasets.GeneratorBasedBuilder):
|
|
| 89 |
|
| 90 |
def _split_generators(self, dl_manager):
|
| 91 |
"""Returns SplitGenerators."""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
data_files = {
|
| 93 |
"train": _TRAINING_FILE,
|
| 94 |
"dev": _DEV_FILE,
|
|
|
|
| 14 |
The dataset can help build sequence labelling models for the task Abbreviation Detection.
|
| 15 |
"""
|
| 16 |
|
| 17 |
+
_TRAINING_FILE_URL = "https://huggingface.co/datasets/surrey-nlp/PLOD-filtered/resolve/main/data/PLOS-train70-filtered-pos_bio.json"
|
| 18 |
+
_DEV_FILE_URL = "https://huggingface.co/datasets/surrey-nlp/PLOD-filtered/resolve/main/data/PLOS-val15-filtered-pos_bio.json"
|
| 19 |
+
_TEST_FILE_URL = "https://huggingface.co/datasets/surrey-nlp/PLOD-filtered/resolve/main/data/PLOS-test15-filtered-pos_bio.json"
|
| 20 |
|
| 21 |
+
_TRAINING_FILE = "PLOS-train70-filtered-pos_bio.json"
|
| 22 |
+
_DEV_FILE = "PLOS-val15-filtered-pos_bio.json"
|
| 23 |
+
_TEST_FILE = "PLOS-test15-filtered-pos_bio.json"
|
| 24 |
|
| 25 |
class PLODfilteredConfig(datasets.BuilderConfig):
|
| 26 |
"""BuilderConfig for Conll2003"""
|
|
|
|
| 92 |
|
| 93 |
def _split_generators(self, dl_manager):
|
| 94 |
"""Returns SplitGenerators."""
|
| 95 |
+
downloaded_train = dl_manager.download_and_extract(_TRAINING_FILE_URL)
|
| 96 |
+
downloaded_val = dl_manager.download_and_extract(_DEV_FILE_URL)
|
| 97 |
+
downloaded_test = dl_manager.download_and_extract(_TEST_FILE_URL)
|
| 98 |
+
|
| 99 |
data_files = {
|
| 100 |
"train": _TRAINING_FILE,
|
| 101 |
"dev": _DEV_FILE,
|