Datasets:
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
- polyglot_ner.py +5 -1
polyglot_ner.py
CHANGED
@@ -101,6 +101,8 @@ _DATA_URL = "http://cs.stonybrook.edu/~polyglot/ner2/emnlp_datasets.tgz"
|
|
101 |
_HOMEPAGE_URL = "https://sites.google.com/site/rmyeid/projects/polylgot-ner"
|
102 |
_VERSION = "1.0.0"
|
103 |
|
|
|
|
|
104 |
|
105 |
class PolyglotNERConfig(datasets.BuilderConfig):
|
106 |
def __init__(self, *args, languages=None, **kwargs):
|
@@ -120,10 +122,12 @@ class PolyglotNER(datasets.GeneratorBasedBuilder):
|
|
120 |
for lang in _LANGUAGES
|
121 |
] + [
|
122 |
PolyglotNERConfig(
|
123 |
-
name=
|
124 |
)
|
125 |
]
|
126 |
|
|
|
|
|
127 |
def _info(self):
|
128 |
return datasets.DatasetInfo(
|
129 |
description=_DESCRIPTION,
|
|
|
101 |
_HOMEPAGE_URL = "https://sites.google.com/site/rmyeid/projects/polylgot-ner"
|
102 |
_VERSION = "1.0.0"
|
103 |
|
104 |
+
_COMBINED = "combined"
|
105 |
+
|
106 |
|
107 |
class PolyglotNERConfig(datasets.BuilderConfig):
|
108 |
def __init__(self, *args, languages=None, **kwargs):
|
|
|
122 |
for lang in _LANGUAGES
|
123 |
] + [
|
124 |
PolyglotNERConfig(
|
125 |
+
name=_COMBINED, languages=_LANGUAGES, description=f"Complete Polyglot-NER dataset with all languages."
|
126 |
)
|
127 |
]
|
128 |
|
129 |
+
DEFAULT_CONFIG_NAME = _COMBINED
|
130 |
+
|
131 |
def _info(self):
|
132 |
return datasets.DatasetInfo(
|
133 |
description=_DESCRIPTION,
|