Datasets:
Tasks:
Summarization
Sub-tasks:
news-articles-summarization
Languages:
Indonesian
Size:
100K<n<1M
ArXiv:
Tags:
extractive-summarization
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- id_liputan6.py +4 -2
id_liputan6.py
CHANGED
@@ -18,7 +18,6 @@ from __future__ import absolute_import, division, print_function
|
|
18 |
|
19 |
import glob
|
20 |
import json
|
21 |
-
import logging
|
22 |
import os
|
23 |
import re
|
24 |
from pathlib import Path
|
@@ -26,6 +25,9 @@ from pathlib import Path
|
|
26 |
import datasets
|
27 |
|
28 |
|
|
|
|
|
|
|
29 |
_CITATION = """\
|
30 |
@inproceedings{id_liputan6,
|
31 |
author = {Fajri Koto, Jey Han Lau, Timothy Baldwin},
|
@@ -149,7 +151,7 @@ class IdLiputan6(datasets.GeneratorBasedBuilder):
|
|
149 |
[re.compile(r"\" ([^\"]+) \""), r'"\1"'],
|
150 |
[re.compile(r"\[ ([^]]+) ]"), r"[\1]"],
|
151 |
]
|
152 |
-
|
153 |
guid = 0
|
154 |
for path in sorted(
|
155 |
glob.glob(os.path.join(article_dir, "**/*.json"), recursive=True), key=lambda p: int(Path(p).stem)
|
|
|
18 |
|
19 |
import glob
|
20 |
import json
|
|
|
21 |
import os
|
22 |
import re
|
23 |
from pathlib import Path
|
|
|
25 |
import datasets
|
26 |
|
27 |
|
28 |
+
logger = datasets.logging.get_logger(__name__)
|
29 |
+
|
30 |
+
|
31 |
_CITATION = """\
|
32 |
@inproceedings{id_liputan6,
|
33 |
author = {Fajri Koto, Jey Han Lau, Timothy Baldwin},
|
|
|
151 |
[re.compile(r"\" ([^\"]+) \""), r'"\1"'],
|
152 |
[re.compile(r"\[ ([^]]+) ]"), r"[\1]"],
|
153 |
]
|
154 |
+
logger.info("⏳ Generating %s examples from = %s", split, article_dir)
|
155 |
guid = 0
|
156 |
for path in sorted(
|
157 |
glob.glob(os.path.join(article_dir, "**/*.json"), recursive=True), key=lambda p: int(Path(p).stem)
|