Upload buster.py
#8
by
azugarini
- opened
buster.py
CHANGED
@@ -108,6 +108,7 @@ class Buster(datasets.GeneratorBasedBuilder):
|
|
108 |
|
109 |
def _generate_examples(self, file_path):
|
110 |
dataset = load_dataset("json", data_files=file_path)
|
|
|
111 |
logger.info(f"Generating examples from: {file_path}")
|
112 |
for idx, example in enumerate(dataset["train"]):
|
113 |
# example features: document_id, tokens, labels
|
|
|
108 |
|
109 |
def _generate_examples(self, file_path):
|
110 |
dataset = load_dataset("json", data_files=file_path)
|
111 |
+
dataset = dataset.remove_columns(["positions"])
|
112 |
logger.info(f"Generating examples from: {file_path}")
|
113 |
for idx, example in enumerate(dataset["train"]):
|
114 |
# example features: document_id, tokens, labels
|