remove a module from task API to adapt to datasets==3.0.0
Browse files
JGLUE.py
CHANGED
@@ -10,7 +10,6 @@ from typing import Optional
|
|
10 |
|
11 |
import datasets as ds
|
12 |
import pandas as pd
|
13 |
-
from datasets.tasks import QuestionAnsweringExtractive
|
14 |
|
15 |
from .preprocess_marc_ja import preprocess_marc_ja, MarcJaConfig
|
16 |
|
@@ -143,13 +142,6 @@ def dataset_info_jsquad() -> ds.DatasetInfo:
|
|
143 |
license=_LICENSE,
|
144 |
features=features,
|
145 |
supervised_keys=None,
|
146 |
-
task_templates=[
|
147 |
-
QuestionAnsweringExtractive(
|
148 |
-
question_column="question",
|
149 |
-
context_column="context",
|
150 |
-
answers_column="answers",
|
151 |
-
)
|
152 |
-
],
|
153 |
)
|
154 |
|
155 |
|
|
|
10 |
|
11 |
import datasets as ds
|
12 |
import pandas as pd
|
|
|
13 |
|
14 |
from .preprocess_marc_ja import preprocess_marc_ja, MarcJaConfig
|
15 |
|
|
|
142 |
license=_LICENSE,
|
143 |
features=features,
|
144 |
supervised_keys=None,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
)
|
146 |
|
147 |
|