ArneBinder commited on
Commit
e7e1b29
·
1 Parent(s): 1d20f53
Files changed (1) hide show
  1. conll2003.py +1 -12
conll2003.py CHANGED
@@ -8,17 +8,6 @@ from pytorch_ie.documents import TextDocument, TextDocumentWithLabeledSpans
8
  from pytorch_ie.utils.span import tokens_and_tags_to_text_and_labeled_spans
9
 
10
 
11
- class CoNLL2003Config(datasets.BuilderConfig):
12
- """BuilderConfig for CoNLL2003"""
13
-
14
- def __init__(self, **kwargs):
15
- """BuilderConfig for CoNLL2003.
16
- Args:
17
- **kwargs: keyword arguments forwarded to super.
18
- """
19
- super().__init__(**kwargs)
20
-
21
-
22
  @dataclass
23
  class CoNLL2003Document(TextDocument):
24
  entities: AnnotationList[LabeledSpan] = annotation_field(target="text")
@@ -30,7 +19,7 @@ class Conll2003(pytorch_ie.data.builder.GeneratorBasedBuilder):
30
  BASE_DATASET_PATH = "conll2003"
31
 
32
  BUILDER_CONFIGS = [
33
- CoNLL2003Config(
34
  name="conll2003", version=datasets.Version("1.0.0"), description="CoNLL2003 dataset"
35
  ),
36
  ]
 
8
  from pytorch_ie.utils.span import tokens_and_tags_to_text_and_labeled_spans
9
 
10
 
 
 
 
 
 
 
 
 
 
 
 
11
  @dataclass
12
  class CoNLL2003Document(TextDocument):
13
  entities: AnnotationList[LabeledSpan] = annotation_field(target="text")
 
19
  BASE_DATASET_PATH = "conll2003"
20
 
21
  BUILDER_CONFIGS = [
22
+ datasets.BuilderConfig(
23
  name="conll2003", version=datasets.Version("1.0.0"), description="CoNLL2003 dataset"
24
  ),
25
  ]