imbesat-rizvi
commited on
Commit
·
a317f23
1
Parent(s):
194d2b4
Removed stale comment
Browse files- newsgroups.py +0 -3
newsgroups.py
CHANGED
@@ -146,9 +146,6 @@ class Newsgroups(datasets.GeneratorBasedBuilder):
|
|
146 |
train_df["text"] = train_df["text"].str.replace("\s+", " ", regex=True)
|
147 |
test_df["text"] = test_df["text"].str.replace("\s+", " ", regex=True)
|
148 |
|
149 |
-
# train_df = train_df[train_df["text"].str.strip()!=""]
|
150 |
-
# test_df = test_df[test_df["text"].str.strip()!=""]
|
151 |
-
|
152 |
train_df, val_df = train_test_split(
|
153 |
train_df, test_size=0.2, random_state=42, stratify=train_df["labels"]
|
154 |
)
|
|
|
146 |
train_df["text"] = train_df["text"].str.replace("\s+", " ", regex=True)
|
147 |
test_df["text"] = test_df["text"].str.replace("\s+", " ", regex=True)
|
148 |
|
|
|
|
|
|
|
149 |
train_df, val_df = train_test_split(
|
150 |
train_df, test_size=0.2, random_state=42, stratify=train_df["labels"]
|
151 |
)
|