Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
< 1K
Tags:
Bot
License:
update config
Browse files- favs_bot.py +20 -11
favs_bot.py
CHANGED
|
@@ -62,24 +62,33 @@ _DEV_FILE = "valid.txt"
|
|
| 62 |
_TEST_FILE = "test.txt"
|
| 63 |
|
| 64 |
|
| 65 |
-
class Conll2003Config(datasets.BuilderConfig):
|
| 66 |
-
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
|
| 76 |
|
| 77 |
class Conll2003(datasets.GeneratorBasedBuilder):
|
| 78 |
-
"""Conll2003 dataset."""
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
BUILDER_CONFIGS = [
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
| 83 |
]
|
| 84 |
|
| 85 |
def _info(self):
|
|
|
|
| 62 |
_TEST_FILE = "test.txt"
|
| 63 |
|
| 64 |
|
| 65 |
+
# class Conll2003Config(datasets.BuilderConfig):
|
| 66 |
+
# """BuilderConfig for Conll2003"""
|
| 67 |
|
| 68 |
+
# def __init__(self, **kwargs):
|
| 69 |
+
# """BuilderConfig forConll2003.
|
| 70 |
|
| 71 |
+
# Args:
|
| 72 |
+
# **kwargs: keyword arguments forwarded to super.
|
| 73 |
+
# """
|
| 74 |
+
# super(Conll2003Config, self).__init__(**kwargs)
|
| 75 |
|
| 76 |
|
| 77 |
class Conll2003(datasets.GeneratorBasedBuilder):
|
| 78 |
+
# """Conll2003 dataset."""
|
| 79 |
|
| 80 |
+
# BUILDER_CONFIGS = [
|
| 81 |
+
# Conll2003Config(name="conll2003", version=datasets.Version(
|
| 82 |
+
# "1.0.0"), description="Conll2003 dataset"),
|
| 83 |
+
# ]
|
| 84 |
+
|
| 85 |
+
VERSION = datasets.Version("1.1.0")
|
| 86 |
+
DEFAULT_CONFIG_NAME = "first_domain"
|
| 87 |
BUILDER_CONFIGS = [
|
| 88 |
+
datasets.BuilderConfig(name="first_domain", version=VERSION,
|
| 89 |
+
description="This part of my dataset covers a first domain"),
|
| 90 |
+
datasets.BuilderConfig(name="second_domain", version=VERSION,
|
| 91 |
+
description="This part of my dataset covers a second domain"),
|
| 92 |
]
|
| 93 |
|
| 94 |
def _info(self):
|