Update WikiConvert.py
Browse files- WikiConvert.py +2 -2
WikiConvert.py
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
|
19 |
|
20 |
import json
|
21 |
-
|
22 |
import datasets
|
23 |
#from datasets.tasks import QuestionAnsweringExtractive
|
24 |
|
@@ -128,6 +128,6 @@ class WikiConvert(datasets.GeneratorBasedBuilder):
|
|
128 |
"length": row["length"],
|
129 |
"magnitude": row["magnitude"],
|
130 |
"comment": row["comment"],
|
131 |
-
"number": row["number"],
|
132 |
}
|
133 |
key += 1
|
|
|
18 |
|
19 |
|
20 |
import json
|
21 |
+
import sys
|
22 |
import datasets
|
23 |
#from datasets.tasks import QuestionAnsweringExtractive
|
24 |
|
|
|
128 |
"length": row["length"],
|
129 |
"magnitude": row["magnitude"],
|
130 |
"comment": row["comment"],
|
131 |
+
"number": min(sys.maxsize, row["number"]),
|
132 |
}
|
133 |
key += 1
|