Commit
•
7b53e20
1
Parent(s):
6d3278d
Update contract-nli.py
Browse files- contract-nli.py +0 -7
contract-nli.py
CHANGED
@@ -60,10 +60,6 @@ class ContractNLIConfig(datasets.BuilderConfig):
|
|
60 |
"""BuilderConfig for ContractNLI.
|
61 |
|
62 |
Args:
|
63 |
-
text_column: ``string`, name of the column in the jsonl file corresponding
|
64 |
-
to the text
|
65 |
-
label_column: `string`, name of the column in the jsonl file corresponding
|
66 |
-
to the label
|
67 |
url: `string`, url for the original project
|
68 |
data_url: `string`, url to download the zip file from
|
69 |
data_file: `string`, filename for data set
|
@@ -72,8 +68,6 @@ class ContractNLIConfig(datasets.BuilderConfig):
|
|
72 |
label_classes: `list[string]`, the list of classes if the label is
|
73 |
categorical. If not provided, then the label will be of type
|
74 |
`datasets.Value('float32')`.
|
75 |
-
multi_label: `boolean`, True if the task is multi-label
|
76 |
-
dev_column: `string`, name for the development subset
|
77 |
**kwargs: keyword arguments forwarded to super.
|
78 |
"""
|
79 |
super(ContractNLIConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
@@ -129,7 +123,6 @@ class ContractNLI(datasets.GeneratorBasedBuilder):
|
|
129 |
(Task B), the input consists of the full document.
|
130 |
"""
|
131 |
),
|
132 |
-
text_column="premise",
|
133 |
label_classes=CONTRACTNLI_LABELS,
|
134 |
data_url=f"{MAIN_PATH}/contract_nli_long.zip",
|
135 |
data_file="contract_nli_long.jsonl",
|
|
|
60 |
"""BuilderConfig for ContractNLI.
|
61 |
|
62 |
Args:
|
|
|
|
|
|
|
|
|
63 |
url: `string`, url for the original project
|
64 |
data_url: `string`, url to download the zip file from
|
65 |
data_file: `string`, filename for data set
|
|
|
68 |
label_classes: `list[string]`, the list of classes if the label is
|
69 |
categorical. If not provided, then the label will be of type
|
70 |
`datasets.Value('float32')`.
|
|
|
|
|
71 |
**kwargs: keyword arguments forwarded to super.
|
72 |
"""
|
73 |
super(ContractNLIConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
|
|
|
123 |
(Task B), the input consists of the full document.
|
124 |
"""
|
125 |
),
|
|
|
126 |
label_classes=CONTRACTNLI_LABELS,
|
127 |
data_url=f"{MAIN_PATH}/contract_nli_long.zip",
|
128 |
data_file="contract_nli_long.jsonl",
|