Remove deprecated tasks
#1
by
albertvillanova
HF Staff
- opened
pmc_open_access_figure.py
CHANGED
|
@@ -32,7 +32,6 @@ from PIL import Image
|
|
| 32 |
import tarfile
|
| 33 |
|
| 34 |
import datasets
|
| 35 |
-
from datasets.tasks import LanguageModeling
|
| 36 |
|
| 37 |
from PIL import ImageFile # Important for error: UserWarning: Corrupt EXIF data. Expecting to read 4 bytes but only got 0
|
| 38 |
import mimetypes
|
|
@@ -157,7 +156,6 @@ class OpenAccessFigure(datasets.GeneratorBasedBuilder):
|
|
| 157 |
homepage=_HOMEPAGE,
|
| 158 |
license=_LICENSE,
|
| 159 |
citation=_CITATION,
|
| 160 |
-
task_templates=[LanguageModeling(text_column="content")],
|
| 161 |
)
|
| 162 |
|
| 163 |
def _split_generators(self, dl_manager):
|
|
|
|
| 32 |
import tarfile
|
| 33 |
|
| 34 |
import datasets
|
|
|
|
| 35 |
|
| 36 |
from PIL import ImageFile # Important for error: UserWarning: Corrupt EXIF data. Expecting to read 4 bytes but only got 0
|
| 37 |
import mimetypes
|
|
|
|
| 156 |
homepage=_HOMEPAGE,
|
| 157 |
license=_LICENSE,
|
| 158 |
citation=_CITATION,
|
|
|
|
| 159 |
)
|
| 160 |
|
| 161 |
def _split_generators(self, dl_manager):
|