albertvillanova HF staff commited on
Commit
1dcd342
1 Parent(s): 0c6f579

Fix definition of features in loading script

Browse files
Files changed (1) hide show
  1. CrossWOZ.py +4 -4
CrossWOZ.py CHANGED
@@ -54,15 +54,15 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
54
  "dialog_id": datasets.Value("string"),
55
  "sys_id": datasets.Value("int32"),
56
  "usr_id": datasets.Value("int32"),
57
- "goal": datasets.Sequence((datasets.Value("string"),)),
58
  "task description": datasets.Sequence(datasets.Value("string")),
59
  "type": datasets.Value("string"),
60
  "messages": datasets.Sequence(
61
  {
62
  "content": datasets.Value("string"),
63
  "role": datasets.Value("string"),
64
- "dialog_act": datasets.Sequence((datasets.Value("string"),)),
65
- "user_state": datasets.Sequence((datasets.Value("string"),)),
66
  "sys_state": {
67
  "景点": {
68
  "名称": datasets.Value("string"),
@@ -151,7 +151,7 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
151
  },
152
  }
153
  ),
154
- "final_goal": datasets.Sequence((datasets.Value("string"),)),
155
  }
156
  )
157
  return datasets.DatasetInfo(
 
54
  "dialog_id": datasets.Value("string"),
55
  "sys_id": datasets.Value("int32"),
56
  "usr_id": datasets.Value("int32"),
57
+ "goal": datasets.Sequence([datasets.Value("string")]),
58
  "task description": datasets.Sequence(datasets.Value("string")),
59
  "type": datasets.Value("string"),
60
  "messages": datasets.Sequence(
61
  {
62
  "content": datasets.Value("string"),
63
  "role": datasets.Value("string"),
64
+ "dialog_act": datasets.Sequence([datasets.Value("string")]),
65
+ "user_state": datasets.Sequence([datasets.Value("string")]),
66
  "sys_state": {
67
  "景点": {
68
  "名称": datasets.Value("string"),
 
151
  },
152
  }
153
  ),
154
+ "final_goal": datasets.Sequence([datasets.Value("string")]),
155
  }
156
  )
157
  return datasets.DatasetInfo(