laugustyniak commited on
Commit
0547960
1 Parent(s): 2c0bf29
dev.feather → dev.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ee2468af88d72003e2c78e9ebdb95cbcd398f636067297577dd482c9fd26917a
3
- size 142410
 
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.feather"
41
- VAL_FILE = DATA_PATH / "dev.feather"
42
- TEST_FILE = DATA_PATH / "test.feather"
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.read_feather(filepath)
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:b82d236034b97450fbc74cc94f3c997f52cfa87399b8c6179cf33fdb9efabcaf
3
- size 139258
 
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:37a241b6324c241a1ec3758f449f67e332d78db014a325c30639161dec889f91
3
- size 444042
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae6d5d8b226e52c8d47540bc1180be5b3c69a603b7aec4211adc0f0486f4afab
3
+ size 180137