Datasets:

Modalities:
Text
Size:
< 1K
Libraries:
Datasets
dibyaaaaax commited on
Commit
c7da6c7
1 Parent(s): f977de1

Update duc2001.py

Browse files
Files changed (1) hide show
  1. duc2001.py +3 -3
duc2001.py CHANGED
@@ -53,7 +53,7 @@ class DUC2001(datasets.GeneratorBasedBuilder):
53
  if self.config.name == "extraction": # This is the name of the configuration selected in BUILDER_CONFIGS above
54
  features = datasets.Features(
55
  {
56
- "id": datasets.Value("int64"),
57
  "document": datasets.features.Sequence(datasets.Value("string")),
58
  "doc_bio_tags": datasets.features.Sequence(datasets.Value("string"))
59
 
@@ -62,7 +62,7 @@ class DUC2001(datasets.GeneratorBasedBuilder):
62
  elif self.config.name == "generation":
63
  features = datasets.Features(
64
  {
65
- "id": datasets.Value("int64"),
66
  "document": datasets.features.Sequence(datasets.Value("string")),
67
  "extractive_keyphrases": datasets.features.Sequence(datasets.Value("string")),
68
  "abstractive_keyphrases": datasets.features.Sequence(datasets.Value("string"))
@@ -72,7 +72,7 @@ class DUC2001(datasets.GeneratorBasedBuilder):
72
  else:
73
  features = datasets.Features(
74
  {
75
- "id": datasets.Value("int64"),
76
  "document": datasets.features.Sequence(datasets.Value("string")),
77
  "doc_bio_tags": datasets.features.Sequence(datasets.Value("string")),
78
  "extractive_keyphrases": datasets.features.Sequence(datasets.Value("string")),
 
53
  if self.config.name == "extraction": # This is the name of the configuration selected in BUILDER_CONFIGS above
54
  features = datasets.Features(
55
  {
56
+ "id": datasets.Value("string"),
57
  "document": datasets.features.Sequence(datasets.Value("string")),
58
  "doc_bio_tags": datasets.features.Sequence(datasets.Value("string"))
59
 
 
62
  elif self.config.name == "generation":
63
  features = datasets.Features(
64
  {
65
+ "id": datasets.Value("string"),
66
  "document": datasets.features.Sequence(datasets.Value("string")),
67
  "extractive_keyphrases": datasets.features.Sequence(datasets.Value("string")),
68
  "abstractive_keyphrases": datasets.features.Sequence(datasets.Value("string"))
 
72
  else:
73
  features = datasets.Features(
74
  {
75
+ "id": datasets.Value("string"),
76
  "document": datasets.features.Sequence(datasets.Value("string")),
77
  "doc_bio_tags": datasets.features.Sequence(datasets.Value("string")),
78
  "extractive_keyphrases": datasets.features.Sequence(datasets.Value("string")),