Upload self-annotated_reddit_climate_comment.py
Browse files
self-annotated_reddit_climate_comment.py
CHANGED
|
@@ -7,7 +7,7 @@ import pandas as pd
|
|
| 7 |
from typing import Dict
|
| 8 |
|
| 9 |
CITATION = ""
|
| 10 |
-
_DESCRIPTION = "
|
| 11 |
_HOMEPAGE = "https://huggingface.co/datasets/SarcasmNet/self-annotated_reddit_climate_comment"
|
| 12 |
_LICENSE = "MIT"
|
| 13 |
|
|
@@ -35,7 +35,7 @@ class NewDataset(GeneratorBasedBuilder):
|
|
| 35 |
"CommentTimestamp": Value("string"),
|
| 36 |
"CommentUpvotes": Value("int32"),
|
| 37 |
"CommentPermalink": Value("string"),
|
| 38 |
-
"
|
| 39 |
})
|
| 40 |
}),
|
| 41 |
homepage=_HOMEPAGE,
|
|
@@ -84,7 +84,7 @@ class NewDataset(GeneratorBasedBuilder):
|
|
| 84 |
"CommentTimestamp": comment_timestamp,
|
| 85 |
"CommentUpvotes": comment_upvotes,
|
| 86 |
"CommentPermalink": comment_permalink,
|
| 87 |
-
"
|
| 88 |
}
|
| 89 |
comments.append(comment)
|
| 90 |
|
|
|
|
| 7 |
from typing import Dict
|
| 8 |
|
| 9 |
CITATION = ""
|
| 10 |
+
_DESCRIPTION = ""
|
| 11 |
_HOMEPAGE = "https://huggingface.co/datasets/SarcasmNet/self-annotated_reddit_climate_comment"
|
| 12 |
_LICENSE = "MIT"
|
| 13 |
|
|
|
|
| 35 |
"CommentTimestamp": Value("string"),
|
| 36 |
"CommentUpvotes": Value("int32"),
|
| 37 |
"CommentPermalink": Value("string"),
|
| 38 |
+
"Label": Value("int32")
|
| 39 |
})
|
| 40 |
}),
|
| 41 |
homepage=_HOMEPAGE,
|
|
|
|
| 84 |
"CommentTimestamp": comment_timestamp,
|
| 85 |
"CommentUpvotes": comment_upvotes,
|
| 86 |
"CommentPermalink": comment_permalink,
|
| 87 |
+
"Label": comment_label
|
| 88 |
}
|
| 89 |
comments.append(comment)
|
| 90 |
|