nthngdy commited on
Commit
57b4ccf
1 Parent(s): 75f1e02

Update ccnews_split.py

Browse files
Files changed (1) hide show
  1. ccnews_split.py +0 -6
ccnews_split.py CHANGED
@@ -155,13 +155,7 @@ class CCNews(datasets.GeneratorBasedBuilder):
155
  id_ += 1
156
  else:
157
  yield id_, {
158
- "title": article["title"].strip() if article["title"] is not None else "",
159
  "text": article["maintext"].strip() if article["maintext"] is not None else "",
160
- "domain": article["source_domain"].strip() if article["source_domain"] is not None else "",
161
- "date": article["date_publish"].strip() if article["date_publish"] is not None else "",
162
- "description": article["description"].strip() if article["description"] is not None else "",
163
- "url": article["url"].strip() if article["url"] is not None else "",
164
- "image_url": article["image_url"].strip() if article["image_url"] is not None else "",
165
  }
166
  id_ += 1
167
 
 
155
  id_ += 1
156
  else:
157
  yield id_, {
 
158
  "text": article["maintext"].strip() if article["maintext"] is not None else "",
 
 
 
 
 
159
  }
160
  id_ += 1
161