Datasets:
Tasks:
Multiple Choice
Sub-tasks:
multiple-choice-coreference-resolution
Languages:
English
Size:
n<1K
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- winograd_wsc.py +3 -3
winograd_wsc.py
CHANGED
@@ -45,19 +45,19 @@ _DOWNLOAD_URL = "https://cs.nyu.edu/faculty/davise/papers/WinogradSchemas/WSColl
|
|
45 |
|
46 |
|
47 |
class WinogradWSCConfig(datasets.BuilderConfig):
|
48 |
-
"""
|
49 |
|
50 |
def __init__(self, *args, language=None, inds=None, **kwargs):
|
51 |
super().__init__(*args, **kwargs)
|
52 |
self.inds = set(inds) if inds is not None else None
|
53 |
|
54 |
def is_in_range(self, id):
|
55 |
-
"""
|
56 |
return id in self.inds if self.inds is not None else True
|
57 |
|
58 |
|
59 |
class WinogradWSC(datasets.GeneratorBasedBuilder):
|
60 |
-
"""
|
61 |
|
62 |
BUILDER_CONFIG_CLASS = WinogradWSCConfig
|
63 |
BUILDER_CONFIGS = [
|
|
|
45 |
|
46 |
|
47 |
class WinogradWSCConfig(datasets.BuilderConfig):
|
48 |
+
"""BuilderConfig for WinogradWSC."""
|
49 |
|
50 |
def __init__(self, *args, language=None, inds=None, **kwargs):
|
51 |
super().__init__(*args, **kwargs)
|
52 |
self.inds = set(inds) if inds is not None else None
|
53 |
|
54 |
def is_in_range(self, id):
|
55 |
+
"""Takes an index and tells you if it belongs to the configuration's subset"""
|
56 |
return id in self.inds if self.inds is not None else True
|
57 |
|
58 |
|
59 |
class WinogradWSC(datasets.GeneratorBasedBuilder):
|
60 |
+
"""The Winograd Schema Challenge Dataset"""
|
61 |
|
62 |
BUILDER_CONFIG_CLASS = WinogradWSCConfig
|
63 |
BUILDER_CONFIGS = [
|