Datasets:
laugustyniak
commited on
Commit
•
0547960
1
Parent(s):
2c0bf29
parquet
Browse files
dev.feather → dev.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de664603570769f3f3940309f1bad02a2b6c5612631860e7cc0d307ca41f2edb
|
3 |
+
size 66658
|
political_advertising_loader.py
CHANGED
@@ -37,9 +37,9 @@ class PoliticalAdvertisingConfig(datasets.BuilderConfig):
|
|
37 |
class PoliticalAdvertisingDataset(datasets.GeneratorBasedBuilder):
|
38 |
VERSION = datasets.Version("1.0.0")
|
39 |
|
40 |
-
TRAIN_FILE = DATA_PATH / "train.
|
41 |
-
VAL_FILE = DATA_PATH / "dev.
|
42 |
-
TEST_FILE = DATA_PATH / "test.
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
datasets.BuilderConfig(name="political-advertising-pl", version=VERSION)
|
@@ -102,7 +102,7 @@ class PoliticalAdvertisingDataset(datasets.GeneratorBasedBuilder):
|
|
102 |
|
103 |
def _generate_examples(self, filepath: str):
|
104 |
logger.info("⏳ Generating examples from = %s", filepath)
|
105 |
-
df = pd.
|
106 |
|
107 |
for row_id, row in df.iterrows():
|
108 |
yield row_id, {
|
|
|
37 |
class PoliticalAdvertisingDataset(datasets.GeneratorBasedBuilder):
|
38 |
VERSION = datasets.Version("1.0.0")
|
39 |
|
40 |
+
TRAIN_FILE = DATA_PATH / "train.parquet"
|
41 |
+
VAL_FILE = DATA_PATH / "dev.parquet"
|
42 |
+
TEST_FILE = DATA_PATH / "test.parquet"
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
datasets.BuilderConfig(name="political-advertising-pl", version=VERSION)
|
|
|
102 |
|
103 |
def _generate_examples(self, filepath: str):
|
104 |
logger.info("⏳ Generating examples from = %s", filepath)
|
105 |
+
df = pd.read_parquet(filepath)
|
106 |
|
107 |
for row_id, row in df.iterrows():
|
108 |
yield row_id, {
|
test.feather → test.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e09aeb0170a55b6005cc83dfbe269df048770208b2dc5e2ea6c018d67d4d6b08
|
3 |
+
size 67275
|
train.feather → train.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae6d5d8b226e52c8d47540bc1180be5b3c69a603b7aec4211adc0f0486f4afab
|
3 |
+
size 180137
|