Hugo Abonizio commited on
Commit
fba8708
1 Parent(s): b231ce5

Use a subset of 5k examples

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. imdb_pt.py +4 -0
  3. test-all.csv +3 -0
  4. test.csv +2 -2
  5. train.csv +2 -2
.gitattributes CHANGED
@@ -54,3 +54,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
54
  *.webp filter=lfs diff=lfs merge=lfs -text
55
  test.csv filter=lfs diff=lfs merge=lfs -text
56
  train.csv filter=lfs diff=lfs merge=lfs -text
 
 
54
  *.webp filter=lfs diff=lfs merge=lfs -text
55
  test.csv filter=lfs diff=lfs merge=lfs -text
56
  train.csv filter=lfs diff=lfs merge=lfs -text
57
+ *.csv filter=lfs diff=lfs merge=lfs -text
imdb_pt.py CHANGED
@@ -64,6 +64,7 @@ class Imdb(datasets.GeneratorBasedBuilder):
64
  def _split_generators(self, dl_manager):
65
  train_path = dl_manager.download_and_extract(f"{_DOWNLOAD_URL}/train.csv")
66
  test_path = dl_manager.download_and_extract(f"{_DOWNLOAD_URL}/test.csv")
 
67
  return [
68
  datasets.SplitGenerator(
69
  name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path, "split": "train"}
@@ -71,6 +72,9 @@ class Imdb(datasets.GeneratorBasedBuilder):
71
  datasets.SplitGenerator(
72
  name=datasets.Split.TEST, gen_kwargs={"filepath": test_path, "split": "test"}
73
  ),
 
 
 
74
  ]
75
 
76
  def _generate_examples(self, filepath, split):
 
64
  def _split_generators(self, dl_manager):
65
  train_path = dl_manager.download_and_extract(f"{_DOWNLOAD_URL}/train.csv")
66
  test_path = dl_manager.download_and_extract(f"{_DOWNLOAD_URL}/test.csv")
67
+ test_all_path = dl_manager.download_and_extract(f"{_DOWNLOAD_URL}/test-all.csv")
68
  return [
69
  datasets.SplitGenerator(
70
  name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path, "split": "train"}
 
72
  datasets.SplitGenerator(
73
  name=datasets.Split.TEST, gen_kwargs={"filepath": test_path, "split": "test"}
74
  ),
75
+ datasets.SplitGenerator(
76
+ name="test-all", gen_kwargs={"filepath": test_all_path, "split": "test-all"}
77
+ ),
78
  ]
79
 
80
  def _generate_examples(self, filepath, split):
test-all.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9e9a326f764127affd13feeca8ce446473d0d8bb627dc0f6f77e3581502652f
3
+ size 32526734
test.csv CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:67a549c2f0d5f9f06db7c59c43728f224a707ddb2e93698eb6bb99c23a81bb7f
3
- size 32799465
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd70abc71102e11dabde0c0ed5097cd0efc91e4617b2078c5a61b4c472af4125
3
+ size 12954682
train.csv CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2fcdc5f90812858d4bd9ce8d3107583c60fcdef6ab071f649058c016e2c2966d
3
- size 33342600
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0ca742ea4c52e1ffd651ca808fcea969a3ac6809a3f5b17872990b25a19b006
3
+ size 33113164