Datasets:

Multilinguality:
translation
Size Categories:
1K<n<10K
Language Creators:
crowdsourced
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
rbawden commited on
Commit
0abbaee
1 Parent(s): 016aedd

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +2 -6
DiaBLa.py CHANGED
@@ -28,8 +28,7 @@ Machine Translation (MT) for informal, written bilingual dialogue.
28
  '''
29
 
30
  _URLS = {
31
- 'dialogues': 'dialogues.json',
32
- 'users': 'users.json'
33
  }
34
 
35
 
@@ -87,10 +86,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
87
  def _split_generators(self, dl_manager):
88
  downloaded_files = dl_manager.download_and_extract(_URLS)
89
 
90
- # return [
91
- # datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
92
- # datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
93
- # ]
94
 
95
  def _generate_examples(self, filepath):
96
  '''This function returns the examples in the raw (text) form.'''
 
28
  '''
29
 
30
  _URLS = {
31
+ 'test': 'DiaBLa.json',
 
32
  }
33
 
34
 
 
86
  def _split_generators(self, dl_manager):
87
  downloaded_files = dl_manager.download_and_extract(_URLS)
88
 
89
+ return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files['test']})]
 
 
 
90
 
91
  def _generate_examples(self, filepath):
92
  '''This function returns the examples in the raw (text) form.'''