Skatinger commited on
Commit
45b97bb
1 Parent(s): 24bd002

Update wikipedia-for-mask-filling.py

Browse files
Files changed (1) hide show
  1. wikipedia-for-mask-filling.py +4 -4
wikipedia-for-mask-filling.py CHANGED
@@ -60,28 +60,28 @@ class WikipediaForMaskFilling(datasets.GeneratorBasedBuilder):
60
  name="original_4096",
61
  version=datasets.Version("1.0.0"),
62
  description="Part of the dataset with original texts and masks, with text chunks split into size of max 4096 tokens (Longformer).",
63
- max_tokens=4096,
64
  type="original"
65
  ),
66
  WikipediaForMaskFillingConfig(
67
  name="original_512",
68
  version=datasets.Version("1.0.0"),
69
  description="text chunks split into size of max 512 tokens (roberta).",
70
- max_tokens=512,
71
  type="original"
72
  ),
73
  WikipediaForMaskFillingConfig(
74
  name="paraphrased_4096",
75
  version=datasets.Version("1.0.0"),
76
  description="Part of the dataset with paraphrased texts and masks, with text chunks split into size of max 4096 tokens (Longformer).",
77
- max_tokens=4096,
78
  type="paraphrased"
79
  ),
80
  WikipediaForMaskFillingConfig(
81
  name="paraphrased_512",
82
  version=datasets.Version("1.0.0"),
83
  description="Paraphrased text chunks split into size of max 512 tokens (roberta).",
84
- max_tokens=512,
85
  type="paraphrased"
86
  )
87
  ]
 
60
  name="original_4096",
61
  version=datasets.Version("1.0.0"),
62
  description="Part of the dataset with original texts and masks, with text chunks split into size of max 4096 tokens (Longformer).",
63
+ size=4096,
64
  type="original"
65
  ),
66
  WikipediaForMaskFillingConfig(
67
  name="original_512",
68
  version=datasets.Version("1.0.0"),
69
  description="text chunks split into size of max 512 tokens (roberta).",
70
+ size=512,
71
  type="original"
72
  ),
73
  WikipediaForMaskFillingConfig(
74
  name="paraphrased_4096",
75
  version=datasets.Version("1.0.0"),
76
  description="Part of the dataset with paraphrased texts and masks, with text chunks split into size of max 4096 tokens (Longformer).",
77
+ size=4096,
78
  type="paraphrased"
79
  ),
80
  WikipediaForMaskFillingConfig(
81
  name="paraphrased_512",
82
  version=datasets.Version("1.0.0"),
83
  description="Paraphrased text chunks split into size of max 512 tokens (roberta).",
84
+ size=512,
85
  type="paraphrased"
86
  )
87
  ]