lovodkin93
commited on
Commit
•
23d0c18
1
Parent(s):
0ac4ef8
updated the script
Browse files
Controlled-Text-Reduction-dataset.py
CHANGED
@@ -251,7 +251,7 @@
|
|
251 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
252 |
# See the License for the specific language governing permissions and
|
253 |
# limitations under the License.
|
254 |
-
"""A Dataset loading script for the
|
255 |
|
256 |
|
257 |
import datasets
|
@@ -260,26 +260,43 @@ from typing import List
|
|
260 |
import pandas as pd
|
261 |
|
262 |
|
263 |
-
_CITATION = """
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
}
|
|
|
|
|
271 |
|
272 |
|
273 |
_DESCRIPTION = """\
|
274 |
-
The dataset contains
|
275 |
-
|
276 |
-
|
277 |
-
See the paper for details: QADiscourse - Discourse Relations as QA Pairs: Representation, Crowdsourcing and Baselines, Pyatkin et. al., 2020
|
278 |
"""
|
279 |
|
280 |
-
_HOMEPAGE = "https://github.com/
|
281 |
-
|
282 |
-
_LICENSE = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
|
284 |
|
285 |
_URLs = {
|
|
|
251 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
252 |
# See the License for the specific language governing permissions and
|
253 |
# limitations under the License.
|
254 |
+
"""A Dataset loading script for the Controlled Text Reduction dataset."""
|
255 |
|
256 |
|
257 |
import datasets
|
|
|
260 |
import pandas as pd
|
261 |
|
262 |
|
263 |
+
_CITATION = """"""
|
264 |
+
# _CITATION = """\
|
265 |
+
# @inproceedings{roit2020controlled,
|
266 |
+
# title={Controlled Crowdsourcing for High-Quality QA-SRL Annotation},
|
267 |
+
# author={Roit, Paul and Klein, Ayal and Stepanov, Daniela and Mamou, Jonathan and Michael, Julian and Stanovsky, Gabriel and Zettlemoyer, Luke and Dagan, Ido},
|
268 |
+
# booktitle={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
|
269 |
+
# pages={7008--7013},
|
270 |
+
# year={2020}
|
271 |
+
# }
|
272 |
+
# """
|
273 |
|
274 |
|
275 |
_DESCRIPTION = """\
|
276 |
+
The dataset contains document-summary pairs with document spans (referred to as "highlights"), indicating the "pre-selected" spans that lead to the creation of the summary.
|
277 |
+
The evaluation and test datasets were constructed via controlled crowdsourcing.
|
278 |
+
The train datasets were automatically generated using the summary-source proposition-level alignment model SuperPAL (Ernst et al., 2021).
|
|
|
279 |
"""
|
280 |
|
281 |
+
_HOMEPAGE = "https://github.com/lovodkin93/Controlled_Text_Reduction/tree/main"
|
282 |
+
|
283 |
+
_LICENSE = """MIT License
|
284 |
+
Copyright (c) 2022 lovodkin93
|
285 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
286 |
+
of this software and associated documentation files (the "Software"), to deal
|
287 |
+
in the Software without restriction, including without limitation the rights
|
288 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
289 |
+
copies of the Software, and to permit persons to whom the Software is
|
290 |
+
furnished to do so, subject to the following conditions:
|
291 |
+
The above copyright notice and this permission notice shall be included in all
|
292 |
+
copies or substantial portions of the Software.
|
293 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
294 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
295 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
296 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
297 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
298 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
299 |
+
SOFTWARE."""
|
300 |
|
301 |
|
302 |
_URLs = {
|