Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K - 10K
License:
init
Browse files- mit_movie_trivia.py +6 -21
mit_movie_trivia.py
CHANGED
@@ -4,23 +4,9 @@ from itertools import chain
|
|
4 |
import datasets
|
5 |
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
-
_DESCRIPTION = """
|
8 |
-
_NAME = "
|
9 |
_VERSION = "1.0.0"
|
10 |
-
_CITATION = """
|
11 |
-
@inproceedings{salinas-alvarado-etal-2015-domain,
|
12 |
-
title = "Domain Adaption of Named Entity Recognition to Support Credit Risk Assessment",
|
13 |
-
author = "Salinas Alvarado, Julio Cesar and
|
14 |
-
Verspoor, Karin and
|
15 |
-
Baldwin, Timothy",
|
16 |
-
booktitle = "Proceedings of the Australasian Language Technology Association Workshop 2015",
|
17 |
-
month = dec,
|
18 |
-
year = "2015",
|
19 |
-
address = "Parramatta, Australia",
|
20 |
-
url = "https://aclanthology.org/U15-1010",
|
21 |
-
pages = "84--90",
|
22 |
-
}
|
23 |
-
"""
|
24 |
|
25 |
_HOME_PAGE = "https://github.com/asahi417/tner"
|
26 |
_URL = f'https://huggingface.co/datasets/tner/{_NAME}/raw/main/dataset'
|
@@ -31,7 +17,7 @@ _URLS = {
|
|
31 |
}
|
32 |
|
33 |
|
34 |
-
class
|
35 |
"""BuilderConfig"""
|
36 |
|
37 |
def __init__(self, **kwargs):
|
@@ -40,14 +26,14 @@ class FinConfig(datasets.BuilderConfig):
|
|
40 |
Args:
|
41 |
**kwargs: keyword arguments forwarded to super.
|
42 |
"""
|
43 |
-
super(
|
44 |
|
45 |
|
46 |
-
class
|
47 |
"""Dataset."""
|
48 |
|
49 |
BUILDER_CONFIGS = [
|
50 |
-
|
51 |
]
|
52 |
|
53 |
def _split_generators(self, dl_manager):
|
@@ -77,5 +63,4 @@ class Fin(datasets.GeneratorBasedBuilder):
|
|
77 |
),
|
78 |
supervised_keys=None,
|
79 |
homepage=_HOME_PAGE,
|
80 |
-
citation=_CITATION,
|
81 |
)
|
|
|
4 |
import datasets
|
5 |
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
+
_DESCRIPTION = """ MIT Movie """
|
8 |
+
_NAME = "mit_movie_trivia"
|
9 |
_VERSION = "1.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
_HOME_PAGE = "https://github.com/asahi417/tner"
|
12 |
_URL = f'https://huggingface.co/datasets/tner/{_NAME}/raw/main/dataset'
|
|
|
17 |
}
|
18 |
|
19 |
|
20 |
+
class MITMovieTriviaConfig(datasets.BuilderConfig):
|
21 |
"""BuilderConfig"""
|
22 |
|
23 |
def __init__(self, **kwargs):
|
|
|
26 |
Args:
|
27 |
**kwargs: keyword arguments forwarded to super.
|
28 |
"""
|
29 |
+
super(MITMovieTriviaConfig, self).__init__(**kwargs)
|
30 |
|
31 |
|
32 |
+
class MITMovieTrivia(datasets.GeneratorBasedBuilder):
|
33 |
"""Dataset."""
|
34 |
|
35 |
BUILDER_CONFIGS = [
|
36 |
+
MITMovieTriviaConfig(name=_NAME, version=datasets.Version(_VERSION), description=_DESCRIPTION),
|
37 |
]
|
38 |
|
39 |
def _split_generators(self, dl_manager):
|
|
|
63 |
),
|
64 |
supervised_keys=None,
|
65 |
homepage=_HOME_PAGE,
|
|
|
66 |
)
|