Update
Browse files- Custom_SQuAD.py +1 -1
Custom_SQuAD.py
CHANGED
|
@@ -167,7 +167,7 @@ class ShellcodeIA32(datasets.GeneratorBasedBuilder):
|
|
| 167 |
# The `key` is here for legacy reason (tfds) and is not important in itself.
|
| 168 |
"""This function returns the examples in the raw (text) form."""
|
| 169 |
print(f"FILEPATH ------------------ {filepath}")
|
| 170 |
-
df = pd.read_json(filepath
|
| 171 |
train = df.sample(frac = 0.8, random_state = 0)
|
| 172 |
test = df.drop(train.index)
|
| 173 |
dev = test.sample(frac = 0.5, random_state = 0)
|
|
|
|
| 167 |
# The `key` is here for legacy reason (tfds) and is not important in itself.
|
| 168 |
"""This function returns the examples in the raw (text) form."""
|
| 169 |
print(f"FILEPATH ------------------ {filepath}")
|
| 170 |
+
df = pd.read_json(filepath)
|
| 171 |
train = df.sample(frac = 0.8, random_state = 0)
|
| 172 |
test = df.drop(train.index)
|
| 173 |
dev = test.sample(frac = 0.5, random_state = 0)
|