Commit ·
abb1ca3
1
Parent(s): 23d0c18
updated the script
Browse files
Controlled-Text-Reduction-dataset.py
CHANGED
|
@@ -299,6 +299,23 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
| 299 |
SOFTWARE."""
|
| 300 |
|
| 301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
_URLs = {
|
| 303 |
"wikinews.train": "https://github.com/ValentinaPy/QADiscourse/raw/master/Dataset/wikinews_train.tsv",
|
| 304 |
"wikinews.dev": "https://github.com/ValentinaPy/QADiscourse/raw/master/Dataset/wikinews_dev.tsv",
|
|
@@ -314,10 +331,12 @@ COLUMNS = ['qasrl_id', 'sentence', 'worker_id', 'full_question', 'full_answer',
|
|
| 314 |
|
| 315 |
|
| 316 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 317 |
-
class
|
| 318 |
-
"""
|
|
|
|
|
|
|
| 319 |
|
| 320 |
-
VERSION = datasets.Version("1.0.
|
| 321 |
|
| 322 |
BUILDER_CONFIGS = [
|
| 323 |
datasets.BuilderConfig(
|
|
|
|
| 299 |
SOFTWARE."""
|
| 300 |
|
| 301 |
|
| 302 |
+
|
| 303 |
+
# _URLs = {
|
| 304 |
+
# "DUC-2001-2002": {
|
| 305 |
+
# "dev": "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main/data/dev_DUC-2001-2002.csv",
|
| 306 |
+
# "test": "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main/data/test_DUC-2001-2002.csv",
|
| 307 |
+
# "train": "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main/data/train_DUC-2001-2002.csv"
|
| 308 |
+
# },
|
| 309 |
+
# "CNN-DM": {
|
| 310 |
+
# "train": "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main/data/train_CNNDM.csv",
|
| 311 |
+
# "dev": "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main/data/dev_DUC-2001-2002.csv",
|
| 312 |
+
# "test": "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main/data/test_DUC-2001-2002.csv",
|
| 313 |
+
# },
|
| 314 |
+
# }
|
| 315 |
+
|
| 316 |
+
# COLUMNS = ["doc_text", "summary_text", "highlight_spans"]
|
| 317 |
+
|
| 318 |
+
|
| 319 |
_URLs = {
|
| 320 |
"wikinews.train": "https://github.com/ValentinaPy/QADiscourse/raw/master/Dataset/wikinews_train.tsv",
|
| 321 |
"wikinews.dev": "https://github.com/ValentinaPy/QADiscourse/raw/master/Dataset/wikinews_dev.tsv",
|
|
|
|
| 331 |
|
| 332 |
|
| 333 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 334 |
+
class ControlledTectReduction(datasets.GeneratorBasedBuilder):
|
| 335 |
+
"""Controlled Text Reduction: dataset for the Controlled Text Reduction task ().
|
| 336 |
+
Each data point consists of a document, a summary, and a list of spans of the document that are the pre-selected content whose summary is the summary"""
|
| 337 |
+
|
| 338 |
|
| 339 |
+
VERSION = datasets.Version("1.0.0")
|
| 340 |
|
| 341 |
BUILDER_CONFIGS = [
|
| 342 |
datasets.BuilderConfig(
|