Hugo Abonizio
commited on
Commit
•
fba8708
1
Parent(s):
b231ce5
Use a subset of 5k examples
Browse files- .gitattributes +1 -0
- imdb_pt.py +4 -0
- test-all.csv +3 -0
- test.csv +2 -2
- 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:
|
3 |
-
size
|
|
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e0ca742ea4c52e1ffd651ca808fcea969a3ac6809a3f5b17872990b25a19b006
|
3 |
+
size 33113164
|