Update ai_hub_summarization.py
Browse files- ai_hub_summarization.py +2 -2
ai_hub_summarization.py
CHANGED
@@ -20,7 +20,7 @@ class AiHubSummarizationConfig(datasets.BuilderConfig):
|
|
20 |
|
21 |
|
22 |
class AiHubSummarization(datasets.GeneratorBasedBuilder):
|
23 |
-
DEFAULT_CONFIG_NAME = "
|
24 |
BUILDER_CONFIGS = [
|
25 |
AiHubSummarizationConfig(
|
26 |
name="ai_hub_summarization",
|
@@ -66,7 +66,7 @@ class AiHubSummarization(datasets.GeneratorBasedBuilder):
|
|
66 |
def _generate_examples(self, data_file: str, split: str):
|
67 |
""" Yields examples. """
|
68 |
with open(data_file, newline='', encoding="UTF-8") as csvfile:
|
69 |
-
reader = csv.reader(csvfile, delimiter='
|
70 |
feature_names = next(reader)
|
71 |
idx = 0
|
72 |
for row in reader:
|
|
|
20 |
|
21 |
|
22 |
class AiHubSummarization(datasets.GeneratorBasedBuilder):
|
23 |
+
DEFAULT_CONFIG_NAME = "ai_hub_summarization"
|
24 |
BUILDER_CONFIGS = [
|
25 |
AiHubSummarizationConfig(
|
26 |
name="ai_hub_summarization",
|
|
|
66 |
def _generate_examples(self, data_file: str, split: str):
|
67 |
""" Yields examples. """
|
68 |
with open(data_file, newline='', encoding="UTF-8") as csvfile:
|
69 |
+
reader = csv.reader(csvfile, delimiter='\t')
|
70 |
feature_names = next(reader)
|
71 |
idx = 0
|
72 |
for row in reader:
|