Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
License:
jilee commited on
Commit
82a23ed
·
1 Parent(s): f099b8d

Upload TexPrax.py

Browse files
Files changed (1) hide show
  1. TexPrax.py +4 -57
TexPrax.py CHANGED
@@ -51,67 +51,14 @@ class TexPraxConfig(datasets.BuilderConfig):
51
  """BuilderConfig for SuperGLUE."""
52
 
53
  def __init__(self, features, data_url, citation, url, label_classes=("False", "True"), **kwargs):
54
- """BuilderConfig for TexPrax.
55
-
56
- Args:
57
- features: *list[string]*, list of the features that will appear in the
58
- feature dict. Should not include "label".
59
- data_url: *string*, url to download the zip file from.
60
- citation: *string*, citation for the data set.
61
- url: *string*, url for information about the data set.
62
- label_classes: *list[string]*, the list of classes for the label if the
63
- label is present as a string. Non-string labels will be cast to either
64
- 'False' or 'True'.
65
- **kwargs: keyword arguments forwarded to super.
66
- """
67
- # Version history:
68
- # 1.0.2: Fixed non-nondeterminism in ReCoRD.
69
- # 1.0.1: Change from the pre-release trial version of SuperGLUE (v1.9) to
70
- # the full release (v2.0).
71
- # 1.0.0: S3 (new shuffling, sharding and slicing mechanism).
72
- # 0.0.2: Initial version.
73
  super(TexPraxConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
74
- self.features = features
75
- self.label_classes = label_classes
76
- self.data_url = data_url
77
- self.citation = _CITATION
78
- self.url = url
79
-
80
- class TexPraxDataset(datasets.GeneratorBasedBuilder):
81
- """German dialgues that ocurred between workers in a factory. This dataset contains token level entity annotation as well as sentence level problem, cause, solution annotations."""
82
-
83
- VERSION = datasets.Version("1.1.0")
84
 
85
- # This is an example of a dataset with multiple configurations.
86
- # If you don't want/need to define several sub-sets in your dataset,
87
- # just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
88
 
89
- # If you need to make complex sub-parts in the datasets with configurable options
90
- # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
91
- # BUILDER_CONFIG_CLASS = MyBuilderConfig
92
-
93
- # You will be able to load one or the other configurations in the following list with
94
- # data = datasets.load_dataset('my_dataset', 'first_domain')
95
- # data = datasets.load_dataset('my_dataset', 'second_domain')
96
  BUILDER_CONFIGS = [
97
- """
98
- TexPraxConfig(
99
- name="sentence_classification",
100
- description="Sentence level annotations of the TexPrax dataset.",
101
- features=["sentence"],
102
- data_url=_SENTENCE_URL,
103
- citation=_CITATION,
104
- url=_ENTITY_URL
105
- ),
106
- TexPraxConfig(
107
- name="named_entity_recognition",
108
- description="Token level annotations of the TexPrax dataset.",
109
- features=["tokens"],
110
- data_url=_ENTITY_URL,
111
- citation=_CITATION,
112
- url=_ENTITY_URL
113
- ),
114
- """
115
  datasets.BuilderConfig(name="sentence_cl", version=VERSION, description="Sentence level annotations of the TexPrax dataset."),
116
  datasets.BuilderConfig(name="ner", version=VERSION, description="BIO-tagged named entites of the TexPrax dataset."),
117
  ]
 
51
  """BuilderConfig for SuperGLUE."""
52
 
53
  def __init__(self, features, data_url, citation, url, label_classes=("False", "True"), **kwargs):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  super(TexPraxConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
 
 
 
 
 
 
 
 
 
 
55
 
 
 
 
56
 
57
+ class TexPraxDataset(datasets.GeneratorBasedBuilder):
58
+ """German dialgues that ocurred between workers in a factory.
59
+ This dataset contains token level entity annotation as well as sentence
60
+ level problem, cause, solution annotations."""
 
 
 
61
  BUILDER_CONFIGS = [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  datasets.BuilderConfig(name="sentence_cl", version=VERSION, description="Sentence level annotations of the TexPrax dataset."),
63
  datasets.BuilderConfig(name="ner", version=VERSION, description="BIO-tagged named entites of the TexPrax dataset."),
64
  ]