ingerid commited on
Commit
7a82a5f
1 Parent(s): 7afb053

docs: update data instance example

Browse files
Files changed (1) hide show
  1. README.md +34 -28
README.md CHANGED
@@ -90,9 +90,9 @@ configs:
90
 
91
  ## Dataset Description
92
 
93
- - **Homepage:** <https://www.nb.no/sprakbanken/>
94
- - **Repository:** <https://www.nb.no/sprakbanken/en/resource-catalogue/oai-nb-no-sbr-85/>
95
- - **Paper:** <https://www.nb.no/sbfil/taledata/NB_Samtale_About_the_corpus.pdf>
96
  - **Point of Contact:** [Språkbanken](mailto:[email protected])
97
 
98
  ### Dataset Summary
@@ -130,41 +130,47 @@ Northern Norway | Nord-Norge | Nordland, Troms og Finnmark
130
 
131
  ### Data Instances
132
 
133
- A data point is an audio segment
134
 
135
  ```
136
  {'source_file_id': 'nb-1',
137
- 'segment_id': '0008970-0013860',
138
- 'segment_order': 0,
139
- 'duration': 4.89,
140
- 'overlap_previous': False,
141
- 'overlap_next': False,
142
- 'speaker_id': 'P36',
143
- 'gender': 'm',
144
- 'dialect': 'e',
145
- 'orthography': 'bm',
146
- 'source_type': 'live-event',
147
- 'file_name': 'data/train/bm/nb-1_0008970-0013860.wav',
148
- 'transcription': 'hallo og velkommen hit til Nasjonalbiblioteket.'}
149
- ```
 
 
 
 
 
150
 
151
  ### Data Fields
152
 
153
  data field | description | Value type / example
154
  --- | --- | ---
155
- `source_file_id` | original file the segment appears in. | `50f-X`, `tr-X` or `nb-X`, where X is an int
156
- `segment_id` | segment start and end timestamp. |
157
  `segment_order` | order of segment in the original file. | (int)
158
  `duration` | duration of segment in seconds. | (float)
159
- `overlap_previous` | whether the beginning of the segment overlaps with the previous segment | `True` or `False`
160
- `overlap_next` | whether the end of the segment overlaps with the next segment. | `True` or `False`
161
- `speaker_id` | speaker ID for the speaker transcribed in the segment. | `P0` - `P69`
162
- `gender` | speaker’s gender | female (`f`) or male (`m`).
163
- `dialect` | speaker’s dialect | east (`e`), `w` (west), `sw` (southwest), `t` (central) or `n` (north)
164
- `orthography` | the written norm of the transcription | bokmål (`bm`) or nynorsk (`nn`)
165
- `source_type` | type of recording of original file | `live-event` or `podcast`
166
- `file_name` | file path to audio segment |
167
- `transcription` | orthographic transcription text |
 
168
 
169
  ### Data Splits
170
 
 
90
 
91
  ## Dataset Description
92
 
93
+ - **Homepage:** [nb.no/sprakbanken](https://www.nb.no/sprakbanken/)
94
+ - **Repository:** [Resource catalogue, no. 85](https://www.nb.no/sprakbanken/en/resource-catalogue/oai-nb-no-sbr-85/)
95
+ - **Paper:** [NB_Samtale_About_the_corpus.pdf](https://www.nb.no/sbfil/taledata/NB_Samtale_About_the_corpus.pdf)
96
  - **Point of Contact:** [Språkbanken](mailto:[email protected])
97
 
98
  ### Dataset Summary
 
130
 
131
  ### Data Instances
132
 
133
+ A data point is an audio segment, including a relative path to the `.wav`-file, and the transcription. Additional information is provided about the speaker, the orthographic standard for the transcriptuion, whether the segment overlaps with the previous or next, and the setting for the recording.
134
 
135
  ```
136
  {'source_file_id': 'nb-1',
137
+ 'segment_id': '0008970-0013860',
138
+ 'segment_order': 0,
139
+ 'duration': 4.89,
140
+ 'overlap_previous': False,
141
+ 'overlap_next': False,
142
+ 'speaker_id': 'P36',
143
+ 'gender': 1,
144
+ 'dialect': 0,
145
+ 'orthography': 0,
146
+ 'source_type': 0,
147
+ 'file_name': 'nb-1_0008970-0013860.wav',
148
+ 'transcription': 'hallo og velkommen hit til Nasjonalbiblioteket.',
149
+ 'audio': {
150
+ 'path': 'data/train/bm/nb-1_0008970-0013860.wav',
151
+ 'array': array([-0.00033569, 0.00222778, -0.0005188 , ..., 0.00057983, 0.0005188 ]),
152
+ 'sampling_rate': 16000}
153
+ }
154
+ ```
155
 
156
  ### Data Fields
157
 
158
  data field | description | Value type / example
159
  --- | --- | ---
160
+ `source_file_id` | original file the segment appears in. | (str) e.g. `50f-X`, `tr-X` or `nb-X`, where X is a number.
161
+ `segment_id` | segment start and end timestamp. | `{starttime}-{endtime}` (str)
162
  `segment_order` | order of segment in the original file. | (int)
163
  `duration` | duration of segment in seconds. | (float)
164
+ `overlap_previous` | whether the beginning of the segment overlaps with the previous segment | `True` or `False` (bool)
165
+ `overlap_next` | whether the end of the segment overlaps with the next segment. | `True` or `False` (bool)
166
+ `speaker_id` | speaker ID for the speaker transcribed in the segment. | `P0` - `P69` (str)
167
+ `gender` | speaker’s binary gender (female or male), mapped to a HuggingFace datasets ClassLabel index number | `0`: f or `1`: m (int)
168
+ `dialect` | the speaker’s dialect area, as a ClassLabel index number for the areas east (e), north (n), southwest (sw), central (t), west (w). | `0`: e, `1`: n, `2`: sw, `3`: t, or `4`: w (int)
169
+ `orthography` | the written norm of the transcription, either bokmål (`bm`) or nynorsk (`nn`) as a ClassLabel index number | `0`: bm or `1`: nn (int)
170
+ `source_type` | type of recording of original file, either `live-event` or `podcast`, as a ClassLabel index number | `0`: live-event or `1`: podcast (int)
171
+ `file_name` | file name of the audio segment, without the path | `{source_file_id}_{segment_id}.wav` (str)
172
+ `transcription` | orthographic transcription text | (str)
173
+ `audio` | the audio segment data, with the relative file `path`, the bytes `array`, and the `sampling_rate` | (dict)
174
 
175
  ### Data Splits
176