sergioburdisso commited on
Commit
00b3612
·
verified ·
1 Parent(s): 84bf2de

Update loading script

Browse files
Files changed (1) hide show
  1. dialog2flow-dataset.py +2 -4
dialog2flow-dataset.py CHANGED
@@ -65,8 +65,6 @@ SPLIT2NAME = {
65
  "test": datasets.Split.TEST,
66
  }
67
 
68
- _URL = "https://huggingface.co/datasets/sergioburdisso/dialog2flow-dataset/tree/main/"
69
-
70
 
71
  class Dialog2FlowConfig(BuilderConfig):
72
  """BuilderConfig for Dialog2Flow."""
@@ -109,7 +107,7 @@ class Dialog2FlowBuilder(GeneratorBasedBuilder):
109
  if self.config.name in DATASETS_PRETRAIN:
110
  features = {"utterance": Value("string"), "label": Value("string")}
111
  else:
112
- features = datasets.features.Sequence(
113
  {
114
  "speaker": Value("string"),
115
  "text": Value("string"),
@@ -126,7 +124,7 @@ class Dialog2FlowBuilder(GeneratorBasedBuilder):
126
  "intents": [Value("string")]
127
  }
128
  }
129
- )
130
  return DatasetInfo(
131
  description="",
132
  features=Features(features),
 
65
  "test": datasets.Split.TEST,
66
  }
67
 
 
 
68
 
69
  class Dialog2FlowConfig(BuilderConfig):
70
  """BuilderConfig for Dialog2Flow."""
 
107
  if self.config.name in DATASETS_PRETRAIN:
108
  features = {"utterance": Value("string"), "label": Value("string")}
109
  else:
110
+ features = [
111
  {
112
  "speaker": Value("string"),
113
  "text": Value("string"),
 
124
  "intents": [Value("string")]
125
  }
126
  }
127
+ ]
128
  return DatasetInfo(
129
  description="",
130
  features=Features(features),