talgatzh commited on
Commit
a966d97
1 Parent(s): 36eb7d0

Update xsum-kk3.py

Browse files
Files changed (1) hide show
  1. xsum-kk3.py +1 -1
xsum-kk3.py CHANGED
@@ -155,6 +155,6 @@ class Xsum(datasets.GeneratorBasedBuilder):
155
  # is the reference summary and TITLE is unused:
156
  # https://github.com/EdinburghNLP/XSum/issues/22
157
  segs = text.split("[SN]")
158
- print(len(segs))
159
  if len(segs)==9:
160
  yield i, {_DOCUMENT: segs[8].strip(), _SUMMARY: segs[6].strip(), _ID: i}#yield i, {_DOCUMENT: segs[8].strip(), _SUMMARY: segs[6].strip(), _ID: i}
 
155
  # is the reference summary and TITLE is unused:
156
  # https://github.com/EdinburghNLP/XSum/issues/22
157
  segs = text.split("[SN]")
158
+ #print(len(segs))
159
  if len(segs)==9:
160
  yield i, {_DOCUMENT: segs[8].strip(), _SUMMARY: segs[6].strip(), _ID: i}#yield i, {_DOCUMENT: segs[8].strip(), _SUMMARY: segs[6].strip(), _ID: i}