Datasets:

ArXiv:
License:
devnote5676 commited on
Commit
beb92de
1 Parent(s): e5802cf

Add sockette loader

Browse files
Files changed (1) hide show
  1. SOCKET.py +7 -3
SOCKET.py CHANGED
@@ -33,7 +33,7 @@ _DESCRIPTION = """\
33
  A unified evaluation benchmark dataset for evaludating socialbility of NLP models.
34
  """
35
 
36
- _HOMEPAGE = "TBD"
37
 
38
  _LICENSE = ""
39
 
@@ -121,11 +121,10 @@ for tasks in TASK_DICT.values():
121
  TASK_NAMES.extend(tasks)
122
  TASK_NAMES = sorted(TASK_NAMES)
123
 
124
- print(len(TASK_NAMES))
125
  _URLs = {}
126
  for task in TASK_NAMES:
127
  _URLs[task] = {}
128
- for s in ['train', 'test', 'val']:
129
  for t in ['text', 'labels']:
130
  task_url = '%s%s/%s_%s.txt'%(URL,task,s,t)
131
  task_url = task_url.replace('#','%23')
@@ -381,6 +380,11 @@ class SOCKET(datasets.GeneratorBasedBuilder):
381
  # These kwargs will be passed to _generate_examples
382
  gen_kwargs={"text_path": data_dir["val_text"], "labels_path": data_dir["val_labels"]},
383
  ),
 
 
 
 
 
384
  ]
385
 
386
  def _generate_examples(self, text_path, labels_path):
 
33
  A unified evaluation benchmark dataset for evaludating socialbility of NLP models.
34
  """
35
 
36
+ _HOMEPAGE = "https://github.com/minjechoi/SOCKET"
37
 
38
  _LICENSE = ""
39
 
 
121
  TASK_NAMES.extend(tasks)
122
  TASK_NAMES = sorted(TASK_NAMES)
123
 
 
124
  _URLs = {}
125
  for task in TASK_NAMES:
126
  _URLs[task] = {}
127
+ for s in ['train', 'test', 'val', 'sockette']:
128
  for t in ['text', 'labels']:
129
  task_url = '%s%s/%s_%s.txt'%(URL,task,s,t)
130
  task_url = task_url.replace('#','%23')
 
380
  # These kwargs will be passed to _generate_examples
381
  gen_kwargs={"text_path": data_dir["val_text"], "labels_path": data_dir["val_labels"]},
382
  ),
383
+ datasets.SplitGenerator(
384
+ name=datasets.NamedSplit('sockette'),
385
+ # These kwargs will be passed to _generate_examples
386
+ gen_kwargs={"text_path": data_dir["sockette_text"], "labels_path": data_dir["sockette_labels"]},
387
+ ),
388
  ]
389
 
390
  def _generate_examples(self, text_path, labels_path):