Update generic_conll.py
Browse files- generic_conll.py +8 -7
generic_conll.py
CHANGED
@@ -12,17 +12,18 @@ logger = datasets.logging.get_logger(__name__)
|
|
12 |
class ConllConfig(datasets.BuilderConfig):
|
13 |
"""BuilderConfig for Conll"""
|
14 |
|
15 |
-
def __init__(
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
"""BuilderConfig forConll.
|
17 |
Args:
|
18 |
**kwargs: keyword arguments forwarded to super.
|
19 |
"""
|
20 |
-
super(ConllConfig, self).__init__(
|
21 |
-
data_files,
|
22 |
-
separator: str = " ", # conll2003 tokens are space separated
|
23 |
-
tag_index: int = -1, # conll2003 ner tags are in the last item of each row
|
24 |
-
**kwargs
|
25 |
-
)
|
26 |
self.data_files = data_files
|
27 |
self.separator = separator
|
28 |
self.tag_index = tag_index
|
|
|
12 |
class ConllConfig(datasets.BuilderConfig):
|
13 |
"""BuilderConfig for Conll"""
|
14 |
|
15 |
+
def __init__(
|
16 |
+
self,
|
17 |
+
data_files,
|
18 |
+
separator: str = " ", # conll2003 tokens are space separated
|
19 |
+
tag_index: int = -1, # conll2003 ner tags are in the last item of each row
|
20 |
+
**kwargs
|
21 |
+
):
|
22 |
"""BuilderConfig forConll.
|
23 |
Args:
|
24 |
**kwargs: keyword arguments forwarded to super.
|
25 |
"""
|
26 |
+
super(ConllConfig, self).__init__(**kwargs)
|
|
|
|
|
|
|
|
|
|
|
27 |
self.data_files = data_files
|
28 |
self.separator = separator
|
29 |
self.tag_index = tag_index
|