Update xsum-kk3.py
Browse files- 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}
|