Update
Browse files- Custom_SQuAD.py +1 -0
Custom_SQuAD.py
CHANGED
|
@@ -165,6 +165,7 @@ class ShellcodeIA32(datasets.GeneratorBasedBuilder):
|
|
| 165 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 166 |
# The `key` is here for legacy reason (tfds) and is not important in itself.
|
| 167 |
"""This function returns the examples in the raw (text) form."""
|
|
|
|
| 168 |
df = pd.read_csv(filepath, delimiter = '\t')
|
| 169 |
train = df.sample(frac = 0.8, random_state = 0)
|
| 170 |
test = df.drop(train.index)
|
|
|
|
| 165 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 166 |
# The `key` is here for legacy reason (tfds) and is not important in itself.
|
| 167 |
"""This function returns the examples in the raw (text) form."""
|
| 168 |
+
print(f"FILEPATH ------------------ {filepath}")
|
| 169 |
df = pd.read_csv(filepath, delimiter = '\t')
|
| 170 |
train = df.sample(frac = 0.8, random_state = 0)
|
| 171 |
test = df.drop(train.index)
|