Datasets:
Upload reddit_climate_comment.py
Browse files
reddit_climate_comment.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import csv
|
2 |
import json
|
3 |
import os
|
4 |
-
from datasets import GeneratorBasedBuilder, Features, Value, Sequence, SplitGenerator, BuilderConfig, DatasetInfo, Split
|
5 |
import logging
|
6 |
import pandas as pd
|
7 |
from typing import Dict
|
@@ -24,7 +24,7 @@ class NewDataset(GeneratorBasedBuilder):
|
|
24 |
"post_author": Value("string"),
|
25 |
"post_body": Value("string"),
|
26 |
"post_url": Value("string"),
|
27 |
-
"post_pic":
|
28 |
"subreddit": Value("string"),
|
29 |
"post_timestamp": Value("string"),
|
30 |
"post_upvotes": Value("int32"),
|
|
|
1 |
import csv
|
2 |
import json
|
3 |
import os
|
4 |
+
from datasets import GeneratorBasedBuilder, Features, Value, Sequence, SplitGenerator, BuilderConfig, DatasetInfo, Split, Image
|
5 |
import logging
|
6 |
import pandas as pd
|
7 |
from typing import Dict
|
|
|
24 |
"post_author": Value("string"),
|
25 |
"post_body": Value("string"),
|
26 |
"post_url": Value("string"),
|
27 |
+
"post_pic": Image(),
|
28 |
"subreddit": Value("string"),
|
29 |
"post_timestamp": Value("string"),
|
30 |
"post_upvotes": Value("int32"),
|