Datasets:
Added code samples
Browse files
README.md
CHANGED
@@ -254,6 +254,44 @@ This subset contains about 2.000 recordings in a **Hessisch** (Guude aka. "Hi"
|
|
254 |
in the center region of germany. All recordings where done using a good Rode Podcaster microphone and a recording chamber. The speech flow is very natural.
|
255 |
*This subset (in 22kHz samplerate) is also available on Zenodo under [DOI 10.5281/zenodo.10511260](https://doi.org/10.5281/zenodo.10511260)*
|
256 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
# DOI / cite
|
258 |
tbd
|
259 |
|
|
|
254 |
in the center region of germany. All recordings where done using a good Rode Podcaster microphone and a recording chamber. The speech flow is very natural.
|
255 |
*This subset (in 22kHz samplerate) is also available on Zenodo under [DOI 10.5281/zenodo.10511260](https://doi.org/10.5281/zenodo.10511260)*
|
256 |
|
257 |
+
# Use the dataset
|
258 |
+
|
259 |
+
## API Call
|
260 |
+
You can query the dataset using HuggingFace API with SQL query syntax
|
261 |
+
|
262 |
+
```SELECT * FROM tv_202106_emotional WHERE "style" = 'angry | wütend' LIMIT 10;```
|
263 |
+
|
264 |
+
## Python Code
|
265 |
+
```
|
266 |
+
from datasets import load_dataset
|
267 |
+
from datasets import load_dataset_builder
|
268 |
+
from datasets import get_dataset_config_names
|
269 |
+
|
270 |
+
# Get a list of available configs/subsets of Thorsten-Voice dataset
|
271 |
+
configs_subsets = get_dataset_config_names("Thorsten-Voice/TV-44kHz-Full")
|
272 |
+
print(configs_subsets)
|
273 |
+
>>> ['TV-2021.02-Neutral', 'TV-2021.06-Emotional', 'TV-2022.10-Neutral', 'TV-2023.09-Hessisch', 'all']
|
274 |
+
|
275 |
+
# Get some dataset information
|
276 |
+
ds_builder = load_dataset_builder("Thorsten-Voice/TV-44kHz-Full", "TV-2022.10-Neutral")
|
277 |
+
print("Desciption: " + ds_builder.info.description)
|
278 |
+
print("Homepage: " + ds_builder.info.homepage)
|
279 |
+
print("License: " + ds_builder.info.license)
|
280 |
+
>>> Desciption: Single german male speaker, neutral speech, very clear, high class quality, natural speech flow
|
281 |
+
>>> Homepage: https://www.Thorsten-Voice.de
|
282 |
+
>>> License: CC0
|
283 |
+
|
284 |
+
# Load "Hessisch" subset
|
285 |
+
ds = load_dataset("Thorsten-Voice/TV-44kHz-Full", "TV-2023.09-Hessisch", split="train")
|
286 |
+
|
287 |
+
# Return first row of "Hessisch" subset
|
288 |
+
print(ds[0])
|
289 |
+
|
290 |
+
# Get first three rows, limited to "text" column
|
291 |
+
print(ds[:3]["text"])
|
292 |
+
>>> ['Woran kannst du erkennen, ob etwas qualitativ gut oder schlecht ist.', 'Diese heiße Schokolade ist nichts für Kinder und perfekt, um am Wochenende oder nach einem langen Tag zu entspannen.', 'Aus den Untersuchungen kam heraus, dass diese Kinder aufmerksamer waren, emotional stabiler und ausgeglichener im Vergleich zu den Kindern die später ins Bett gingen.']
|
293 |
+
```
|
294 |
+
|
295 |
# DOI / cite
|
296 |
tbd
|
297 |
|