Datasets:
Sub-tasks:
multi-class-classification
Languages:
English
Size:
1K<n<10K
Tags:
natural-language-understanding
ideology classification
text classification
natural language processing
License:
EricR401S
commited on
Commit
·
602116a
1
Parent(s):
9d308c0
testing splits
Browse files
Pill_Ideologies-Post_Titles.py
CHANGED
@@ -152,8 +152,9 @@ class SubRedditPosts(datasets.GeneratorBasedBuilder):
|
|
152 |
urls = _URLS[self.config.name]
|
153 |
print(urls)
|
154 |
data_dir = dl_manager.download_and_extract(urls)
|
155 |
-
print(data_dir, type(data_dir))
|
156 |
-
data = pd.read_csv(data_dir
|
|
|
157 |
print("Error post pandas read csv")
|
158 |
train, test = train_test_split(
|
159 |
data, test_size=0.10, stratify=data["subreddit"], random_state=42
|
|
|
152 |
urls = _URLS[self.config.name]
|
153 |
print(urls)
|
154 |
data_dir = dl_manager.download_and_extract(urls)
|
155 |
+
print(data_dir, type(data_dir), "checking type")
|
156 |
+
data = pd.read_csv(data_dir)
|
157 |
+
self.preprocess_data(data_dir)
|
158 |
print("Error post pandas read csv")
|
159 |
train, test = train_test_split(
|
160 |
data, test_size=0.10, stratify=data["subreddit"], random_state=42
|