ShutongFeng commited on
Commit
634ad4b
1 Parent(s): 1f0b623

Update emowoz.py

Browse files

Debug: resolve duplicate key in the training set

Files changed (1) hide show
  1. emowoz.py +3 -0
emowoz.py CHANGED
@@ -167,6 +167,9 @@ class EmoWOZ(datasets.GeneratorBasedBuilder):
167
  else:
168
  dial_ids = data_split[split][subset]
169
 
 
 
 
170
  for key in dial_ids:
171
  yield key, {
172
  "dialogue_id": key,
 
167
  else:
168
  dial_ids = data_split[split][subset]
169
 
170
+ # resolve the duplicate key in the training set of emowoz/data-split.json
171
+ dial_ids = list(set(dial_ids)
172
+
173
  for key in dial_ids:
174
  yield key, {
175
  "dialogue_id": key,