PereLluis13 commited on
Commit
edc4337
1 Parent(s): 354e662
Files changed (1) hide show
  1. rebel-dataset.py +1 -1
rebel-dataset.py CHANGED
@@ -129,7 +129,7 @@ class Rebel(datasets.GeneratorBasedBuilder):
129
  text = re.sub('([\[\].,!?()])', r' \1 ', text.replace('()', ''))
130
  text = re.sub('\s{2,}', ' ', text)
131
 
132
- yield article['uri'] + '-' + str(count), {
133
  "title": article['title'],
134
  "context": text,
135
  "id": article['uri'] + '-' + str(count),
129
  text = re.sub('([\[\].,!?()])', r' \1 ', text.replace('()', ''))
130
  text = re.sub('\s{2,}', ' ', text)
131
 
132
+ yield article['docid'] + '-' + str(count), {
133
  "title": article['title'],
134
  "context": text,
135
  "id": article['uri'] + '-' + str(count),