SuzanaB commited on
Commit
a3d3319
1 Parent(s): eb804f9
Files changed (2) hide show
  1. data.zip +0 -0
  2. hr500k.py +8 -2
data.zip ADDED
Binary file (5.14 MB). View file
hr500k.py CHANGED
@@ -31,7 +31,7 @@ are encoded as class labels.
31
  _HOMEPAGE = 'https://www.clarin.si/repository/xmlui/handle/11356/1183#'
32
  _LICENSE = ''
33
 
34
- _URL = 'https://raw.githubusercontent.com/clarinsi/babushka-bench/master/datasets/hr/hr500k/'
35
  _TRAINING_FILE = 'train_ner.conllu'
36
  _DEV_FILE = 'dev_ner.conllu'
37
  _TEST_FILE = 'test_ner.conllu'
@@ -117,6 +117,7 @@ class Hr500K(datasets.GeneratorBasedBuilder):
117
  'dev': f"{_URL}{_DEV_FILE}",
118
  'test': f"{_URL}{_TEST_FILE}",
119
  }
 
120
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
121
 
122
  return [
@@ -185,4 +186,9 @@ class Hr500K(datasets.GeneratorBasedBuilder):
185
  'upos_tags': upos_tags,
186
  'feats': feats,
187
  'iob_tags': iob_tags
188
- }
 
 
 
 
 
31
  _HOMEPAGE = 'https://www.clarin.si/repository/xmlui/handle/11356/1183#'
32
  _LICENSE = ''
33
 
34
+ _URL = 'https://huggingface.co/datasets/classla/hr500k/data.zip'
35
  _TRAINING_FILE = 'train_ner.conllu'
36
  _DEV_FILE = 'dev_ner.conllu'
37
  _TEST_FILE = 'test_ner.conllu'
117
  'dev': f"{_URL}{_DEV_FILE}",
118
  'test': f"{_URL}{_TEST_FILE}",
119
  }
120
+
121
  downloaded_files = dl_manager.download_and_extract(urls_to_download)
122
 
123
  return [
186
  'upos_tags': upos_tags,
187
  'feats': feats,
188
  'iob_tags': iob_tags
189
+ }
190
+
191
+
192
+ dataset = datasets.load_dataset('hr500k.py', split='test')
193
+ print(dataset.info)
194
+ print(dataset[0])