system HF staff commited on
Commit
437dc40
1 Parent(s): 1f3d2f6

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. wnut_17.py +4 -3
README.md CHANGED
@@ -27,7 +27,7 @@
27
  - [Citation Information](#citation-information)
28
  - [Contributions](#contributions)
29
 
30
- ## [Dataset Description](#dataset-description)
31
 
32
  - **Homepage:** [http://noisy-text.github.io/2017/emerging-rare-entities.html](http://noisy-text.github.io/2017/emerging-rare-entities.html)
33
  - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
@@ -37,7 +37,7 @@
37
  - **Size of the generated dataset:** 1.66 MB
38
  - **Total amount of disk used:** 2.43 MB
39
 
40
- ### [Dataset Summary](#dataset-summary)
41
 
42
  WNUT 17: Emerging and Rare entity recognition
43
 
@@ -49,19 +49,19 @@ This task will evaluate the ability to detect and classify novel, emerging, sing
49
 
50
  The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities.
51
 
52
- ### [Supported Tasks](#supported-tasks)
53
 
54
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
55
 
56
- ### [Languages](#languages)
57
 
58
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
59
 
60
- ## [Dataset Structure](#dataset-structure)
61
 
62
  We show detailed information for up to 5 configurations of the dataset.
63
 
64
- ### [Data Instances](#data-instances)
65
 
66
  #### wnut_17
67
 
@@ -78,7 +78,7 @@ An example of 'train' looks as follows.
78
  }
79
  ```
80
 
81
- ### [Data Fields](#data-fields)
82
 
83
  The data fields are the same among all splits.
84
 
@@ -87,55 +87,55 @@ The data fields are the same among all splits.
87
  - `tokens`: a `list` of `string` features.
88
  - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-corporation` (1), `I-corporation` (2), `B-creative-work` (3), `I-creative-work` (4).
89
 
90
- ### [Data Splits Sample Size](#data-splits-sample-size)
91
 
92
  | name |train|validation|test|
93
  |-------|----:|---------:|---:|
94
  |wnut_17| 3394| 1009|1287|
95
 
96
- ## [Dataset Creation](#dataset-creation)
97
 
98
- ### [Curation Rationale](#curation-rationale)
99
 
100
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
101
 
102
- ### [Source Data](#source-data)
103
 
104
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
105
 
106
- ### [Annotations](#annotations)
107
 
108
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
109
 
110
- ### [Personal and Sensitive Information](#personal-and-sensitive-information)
111
 
112
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
113
 
114
- ## [Considerations for Using the Data](#considerations-for-using-the-data)
115
 
116
- ### [Social Impact of Dataset](#social-impact-of-dataset)
117
 
118
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
119
 
120
- ### [Discussion of Biases](#discussion-of-biases)
121
 
122
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
123
 
124
- ### [Other Known Limitations](#other-known-limitations)
125
 
126
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
127
 
128
- ## [Additional Information](#additional-information)
129
 
130
- ### [Dataset Curators](#dataset-curators)
131
 
132
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
133
 
134
- ### [Licensing Information](#licensing-information)
135
 
136
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
137
 
138
- ### [Citation Information](#citation-information)
139
 
140
  ```
141
  @inproceedings{derczynski-etal-2017-results,
 
27
  - [Citation Information](#citation-information)
28
  - [Contributions](#contributions)
29
 
30
+ ## Dataset Description
31
 
32
  - **Homepage:** [http://noisy-text.github.io/2017/emerging-rare-entities.html](http://noisy-text.github.io/2017/emerging-rare-entities.html)
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:** 1.66 MB
38
  - **Total amount of disk used:** 2.43 MB
39
 
40
+ ### Dataset Summary
41
 
42
  WNUT 17: Emerging and Rare entity recognition
43
 
 
49
 
50
  The goal of this task is to provide a definition of emerging and of rare entities, and based on that, also datasets for detecting these entities.
51
 
52
+ ### Supported Tasks
53
 
54
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
55
 
56
+ ### Languages
57
 
58
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
59
 
60
+ ## Dataset Structure
61
 
62
  We show detailed information for up to 5 configurations of the dataset.
63
 
64
+ ### Data Instances
65
 
66
  #### wnut_17
67
 
 
78
  }
79
  ```
80
 
81
+ ### Data Fields
82
 
83
  The data fields are the same among all splits.
84
 
 
87
  - `tokens`: a `list` of `string` features.
88
  - `ner_tags`: a `list` of classification labels, with possible values including `O` (0), `B-corporation` (1), `I-corporation` (2), `B-creative-work` (3), `I-creative-work` (4).
89
 
90
+ ### Data Splits Sample Size
91
 
92
  | name |train|validation|test|
93
  |-------|----:|---------:|---:|
94
  |wnut_17| 3394| 1009|1287|
95
 
96
+ ## Dataset Creation
97
 
98
+ ### Curation Rationale
99
 
100
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
101
 
102
+ ### Source Data
103
 
104
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
105
 
106
+ ### Annotations
107
 
108
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
109
 
110
+ ### Personal and Sensitive Information
111
 
112
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
113
 
114
+ ## Considerations for Using the Data
115
 
116
+ ### Social Impact of Dataset
117
 
118
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
119
 
120
+ ### Discussion of Biases
121
 
122
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
123
 
124
+ ### Other Known Limitations
125
 
126
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
127
 
128
+ ## Additional Information
129
 
130
+ ### Dataset Curators
131
 
132
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
133
 
134
+ ### Licensing Information
135
 
136
  [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
137
 
138
+ ### Citation Information
139
 
140
  ```
141
  @inproceedings{derczynski-etal-2017-results,
wnut_17.py CHANGED
@@ -18,11 +18,12 @@
18
 
19
  from __future__ import absolute_import, division, print_function
20
 
21
- import logging
22
-
23
  import datasets
24
 
25
 
 
 
 
26
  _CITATION = """\
27
  @inproceedings{derczynski-etal-2017-results,
28
  title = "Results of the {WNUT}2017 Shared Task on Novel and Emerging Entity Recognition",
@@ -137,7 +138,7 @@ class WNUT_17(datasets.GeneratorBasedBuilder):
137
  ]
138
 
139
  def _generate_examples(self, filepath):
140
- logging.info("⏳ Generating examples from = %s", filepath)
141
  with open(filepath, encoding="utf-8") as f:
142
  current_tokens = []
143
  current_labels = []
 
18
 
19
  from __future__ import absolute_import, division, print_function
20
 
 
 
21
  import datasets
22
 
23
 
24
+ logger = datasets.logging.get_logger(__name__)
25
+
26
+
27
  _CITATION = """\
28
  @inproceedings{derczynski-etal-2017-results,
29
  title = "Results of the {WNUT}2017 Shared Task on Novel and Emerging Entity Recognition",
 
138
  ]
139
 
140
  def _generate_examples(self, filepath):
141
+ logger.info("⏳ Generating examples from = %s", filepath)
142
  with open(filepath, encoding="utf-8") as f:
143
  current_tokens = []
144
  current_labels = []