system HF staff commited on
Commit
8a79cf1
1 Parent(s): d3e58f7

Update files from the datasets library (from 1.4.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.4.0

Files changed (2) hide show
  1. README.md +21 -21
  2. germeval_14.py +4 -2
README.md CHANGED
@@ -27,7 +27,7 @@
27
  - [Citation Information](#citation-information)
28
  - [Contributions](#contributions)
29
 
30
- ## [Dataset Description](#dataset-description)
31
 
32
  - **Homepage:** [https://sites.google.com/site/germeval2014ner/](https://sites.google.com/site/germeval2014ner/)
33
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
@@ -37,23 +37,23 @@
37
  - **Size of the generated dataset:** 17.19 MB
38
  - **Total amount of disk used:** 27.00 MB
39
 
40
- ### [Dataset Summary](#dataset-summary)
41
 
42
  The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation with the following properties: - The data was sampled from German Wikipedia and News Corpora as a collection of citations. - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]].
43
 
44
- ### [Supported Tasks](#supported-tasks)
45
 
46
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
47
 
48
- ### [Languages](#languages)
49
 
50
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
51
 
52
- ## [Dataset Structure](#dataset-structure)
53
 
54
  We show detailed information for up to 5 configurations of the dataset.
55
 
56
- ### [Data Instances](#data-instances)
57
 
58
  #### germeval_14
59
 
@@ -74,7 +74,7 @@ This example was too long and was cropped:
74
  }
75
  ```
76
 
77
- ### [Data Fields](#data-fields)
78
 
79
  The data fields are the same among all splits.
80
 
@@ -85,55 +85,55 @@ The data fields are the same among all splits.
85
  - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-LOC` (1), `I-LOC` (2), `B-LOCderiv` (3), `I-LOCderiv` (4).
86
  - `nested_ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-LOC` (1), `I-LOC` (2), `B-LOCderiv` (3), `I-LOCderiv` (4).
87
 
88
- ### [Data Splits Sample Size](#data-splits-sample-size)
89
 
90
  | name |train|validation|test|
91
  |-----------|----:|---------:|---:|
92
  |germeval_14|24000| 2200|5100|
93
 
94
- ## [Dataset Creation](#dataset-creation)
95
 
96
- ### [Curation Rationale](#curation-rationale)
97
 
98
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
99
 
100
- ### [Source Data](#source-data)
101
 
102
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
103
 
104
- ### [Annotations](#annotations)
105
 
106
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
107
 
108
- ### [Personal and Sensitive Information](#personal-and-sensitive-information)
109
 
110
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
111
 
112
- ## [Considerations for Using the Data](#considerations-for-using-the-data)
113
 
114
- ### [Social Impact of Dataset](#social-impact-of-dataset)
115
 
116
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
117
 
118
- ### [Discussion of Biases](#discussion-of-biases)
119
 
120
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
121
 
122
- ### [Other Known Limitations](#other-known-limitations)
123
 
124
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
125
 
126
- ## [Additional Information](#additional-information)
127
 
128
- ### [Dataset Curators](#dataset-curators)
129
 
130
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
131
 
132
- ### [Licensing Information](#licensing-information)
133
 
134
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
135
 
136
- ### [Citation Information](#citation-information)
137
 
138
  ```
139
  @inproceedings{benikova-etal-2014-nosta,
 
27
  - [Citation Information](#citation-information)
28
  - [Contributions](#contributions)
29
 
30
+ ## Dataset Description
31
 
32
  - **Homepage:** [https://sites.google.com/site/germeval2014ner/](https://sites.google.com/site/germeval2014ner/)
33
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
37
  - **Size of the generated dataset:** 17.19 MB
38
  - **Total amount of disk used:** 27.00 MB
39
 
40
+ ### Dataset Summary
41
 
42
  The GermEval 2014 NER Shared Task builds on a new dataset with German Named Entity annotation with the following properties: - The data was sampled from German Wikipedia and News Corpora as a collection of citations. - The dataset covers over 31,000 sentences corresponding to over 590,000 tokens. - The NER annotation uses the NoSta-D guidelines, which extend the Tübingen Treebank guidelines, using four main NER categories with sub-structure, and annotating embeddings among NEs such as [ORG FC Kickers [LOC Darmstadt]].
43
 
44
+ ### Supported Tasks
45
 
46
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
47
 
48
+ ### Languages
49
 
50
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
51
 
52
+ ## Dataset Structure
53
 
54
  We show detailed information for up to 5 configurations of the dataset.
55
 
56
+ ### Data Instances
57
 
58
  #### germeval_14
59
 
 
74
  }
75
  ```
76
 
77
+ ### Data Fields
78
 
79
  The data fields are the same among all splits.
80
 
 
85
  - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-LOC` (1), `I-LOC` (2), `B-LOCderiv` (3), `I-LOCderiv` (4).
86
  - `nested_ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-LOC` (1), `I-LOC` (2), `B-LOCderiv` (3), `I-LOCderiv` (4).
87
 
88
+ ### Data Splits Sample Size
89
 
90
  | name |train|validation|test|
91
  |-----------|----:|---------:|---:|
92
  |germeval_14|24000| 2200|5100|
93
 
94
+ ## Dataset Creation
95
 
96
+ ### Curation Rationale
97
 
98
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
99
 
100
+ ### Source Data
101
 
102
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
103
 
104
+ ### Annotations
105
 
106
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
107
 
108
+ ### Personal and Sensitive Information
109
 
110
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
111
 
112
+ ## Considerations for Using the Data
113
 
114
+ ### Social Impact of Dataset
115
 
116
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
117
 
118
+ ### Discussion of Biases
119
 
120
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
121
 
122
+ ### Other Known Limitations
123
 
124
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
125
 
126
+ ## Additional Information
127
 
128
+ ### Dataset Curators
129
 
130
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
131
 
132
+ ### Licensing Information
133
 
134
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
135
 
136
+ ### Citation Information
137
 
138
  ```
139
  @inproceedings{benikova-etal-2014-nosta,
germeval_14.py CHANGED
@@ -19,11 +19,13 @@
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import csv
22
- import logging
23
 
24
  import datasets
25
 
26
 
 
 
 
27
  _CITATION = """\
28
  @inproceedings{benikova-etal-2014-nosta,
29
  title = {NoSta-D Named Entity Annotation for German: Guidelines and Dataset},
@@ -165,7 +167,7 @@ class GermEval14(datasets.GeneratorBasedBuilder):
165
  ]
166
 
167
  def _generate_examples(self, filepath):
168
- logging.info("⏳ Generating examples from = %s", filepath)
169
  with open(filepath, encoding="utf-8") as f:
170
  data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
171
  current_source = ""
 
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import csv
 
22
 
23
  import datasets
24
 
25
 
26
+ logger = datasets.logging.get_logger(__name__)
27
+
28
+
29
  _CITATION = """\
30
  @inproceedings{benikova-etal-2014-nosta,
31
  title = {NoSta-D Named Entity Annotation for German: Guidelines and Dataset},
 
167
  ]
168
 
169
  def _generate_examples(self, filepath):
170
+ logger.info("⏳ Generating examples from = %s", filepath)
171
  with open(filepath, encoding="utf-8") as f:
172
  data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
173
  current_source = ""