Datasets:
Add files using upload-large-folder tool
Browse files- README.md +137 -0
- data/dev_clean.lance/_indices/13807ed9-f4e9-47a9-a370-f66842a13c36/index.idx +0 -0
- data/dev_clean.lance/_indices/41f3d2e6-9403-4743-9dd0-11ad21ce596a/page_data.lance +0 -0
- data/dev_clean.lance/_indices/41f3d2e6-9403-4743-9dd0-11ad21ce596a/page_lookup.lance +0 -0
- data/dev_clean.lance/_indices/9a39e47f-2244-4d7f-8564-52aa87d339a7/metadata.lance +0 -0
- data/dev_clean.lance/_indices/9a39e47f-2244-4d7f-8564-52aa87d339a7/part_0_docs.lance +0 -0
- data/dev_clean.lance/_indices/9a39e47f-2244-4d7f-8564-52aa87d339a7/part_0_tokens.lance +0 -0
- data/dev_clean.lance/_indices/acb15c7c-763e-4214-8118-f0fa34a8203c/page_data.lance +0 -0
- data/dev_clean.lance/_indices/acb15c7c-763e-4214-8118-f0fa34a8203c/page_lookup.lance +0 -0
- data/dev_clean.lance/_indices/e3914d27-a78c-433b-afe6-968b262a62ec/page_data.lance +0 -0
- data/dev_clean.lance/_indices/e3914d27-a78c-433b-afe6-968b262a62ec/page_lookup.lance +0 -0
- data/dev_clean.lance/_transactions/0-ad6423c3-fd32-4f22-9cc4-e8acbf8d344c.txn +0 -0
- data/dev_clean.lance/_transactions/1-c6c62f46-c778-4d31-aa84-1b3034bdb49a.txn +0 -0
- data/dev_clean.lance/_transactions/2-39e7fdca-bba3-4eaf-af80-579b2d2f3012.txn +0 -0
- data/dev_clean.lance/_transactions/3-67c08cc9-73ac-4ccf-a045-32773c3161a0.txn +0 -0
- data/dev_clean.lance/_transactions/4-a6e530f6-8708-4924-bfb0-72edfd0294da.txn +0 -0
- data/dev_clean.lance/_transactions/5-773b021e-7cc1-47be-9c5b-fe92a32b6021.txn +0 -0
- data/dev_clean.lance/_versions/18446744073709551609.manifest +0 -0
- data/dev_clean.lance/_versions/18446744073709551610.manifest +0 -0
- data/dev_clean.lance/_versions/18446744073709551611.manifest +0 -0
- data/dev_clean.lance/_versions/18446744073709551612.manifest +0 -0
- data/dev_clean.lance/_versions/18446744073709551613.manifest +0 -0
- data/dev_clean.lance/_versions/18446744073709551614.manifest +0 -0
- data/test_clean.lance/_indices/005afec1-f7da-437e-b8e0-1cccc14ed4a3/metadata.lance +0 -0
- data/test_clean.lance/_indices/005afec1-f7da-437e-b8e0-1cccc14ed4a3/part_0_docs.lance +0 -0
- data/test_clean.lance/_indices/005afec1-f7da-437e-b8e0-1cccc14ed4a3/part_0_tokens.lance +0 -0
- data/test_clean.lance/_indices/171fb3fb-30e6-4b5b-8b7b-402f121e1864/page_data.lance +0 -0
- data/test_clean.lance/_indices/171fb3fb-30e6-4b5b-8b7b-402f121e1864/page_lookup.lance +0 -0
- data/test_clean.lance/_indices/4e523b97-3020-4ecf-894f-c75104abab4a/page_data.lance +0 -0
- data/test_clean.lance/_indices/4e523b97-3020-4ecf-894f-c75104abab4a/page_lookup.lance +0 -0
- data/test_clean.lance/_indices/9ebdfeaa-4496-41fa-a6c5-a6d2ed5ae046/page_data.lance +0 -0
- data/test_clean.lance/_indices/9ebdfeaa-4496-41fa-a6c5-a6d2ed5ae046/page_lookup.lance +0 -0
- data/test_clean.lance/_indices/d9204036-4e94-41fc-9a0b-b8622f2655ac/index.idx +0 -0
- data/test_clean.lance/_transactions/0-c6ad66ea-976a-47a2-b8cd-52256bdb3676.txn +0 -0
- data/test_clean.lance/_transactions/1-2ccd18fa-71bf-4f69-90cd-016a2ffaf17a.txn +0 -0
- data/test_clean.lance/_transactions/2-66b2ca79-3191-45c0-a9ec-cc62a1f8cf41.txn +0 -0
- data/test_clean.lance/_transactions/3-68132b62-b8ed-437f-953e-7928314d3972.txn +0 -0
- data/test_clean.lance/_transactions/4-19090426-3dba-45ef-a5f4-6f8c516e84cc.txn +0 -0
- data/test_clean.lance/_transactions/5-66fe1041-b412-4a25-8ce4-24a271a9f374.txn +0 -0
- data/test_clean.lance/_versions/18446744073709551609.manifest +0 -0
- data/test_clean.lance/_versions/18446744073709551610.manifest +0 -0
- data/test_clean.lance/_versions/18446744073709551611.manifest +0 -0
- data/test_clean.lance/_versions/18446744073709551612.manifest +0 -0
- data/test_clean.lance/_versions/18446744073709551613.manifest +0 -0
- data/test_clean.lance/_versions/18446744073709551614.manifest +0 -0
- data/train_clean_100.lance/_indices/31b3917d-c098-4943-a26f-5eb9df5e8088/metadata.lance +0 -0
- data/train_clean_100.lance/_indices/ce74571d-33af-4537-a912-e744f4f4dc73/page_data.lance +0 -0
- data/train_clean_100.lance/_versions/18446744073709551609.manifest +0 -0
- data/train_clean_100.lance/_versions/18446744073709551610.manifest +0 -0
- data/train_clean_100.lance/_versions/18446744073709551612.manifest +0 -0
README.md
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- automatic-speech-recognition
|
| 5 |
+
- audio-classification
|
| 6 |
+
- text-retrieval
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
tags:
|
| 10 |
+
- librispeech
|
| 11 |
+
- asr
|
| 12 |
+
- audio
|
| 13 |
+
- speech
|
| 14 |
+
- lance
|
| 15 |
+
- sentence-transformers
|
| 16 |
+
pretty_name: librispeech-clean-lance
|
| 17 |
+
size_categories:
|
| 18 |
+
- 10K<n<100K
|
| 19 |
+
---
|
| 20 |
+
# LibriSpeech `clean` (Lance Format)
|
| 21 |
+
|
| 22 |
+
Lance-formatted version of the LibriSpeech ASR `clean` configuration (sourced from [`openslr/librispeech_asr`](https://huggingface.co/datasets/openslr/librispeech_asr)). Audio is stored inline as FLAC bytes (no re-encoding); transcripts are sentence-embedded so semantic transcript search works out of the box.
|
| 23 |
+
|
| 24 |
+
## Splits
|
| 25 |
+
|
| 26 |
+
| Split | Lance file | Rows | Description |
|
| 27 |
+
|-------|------------|------|-------------|
|
| 28 |
+
| `dev_clean.lance` | dev.clean | 2,703 | Standard ASR validation set |
|
| 29 |
+
| `test_clean.lance` | test.clean | 2,620 | Standard ASR test set |
|
| 30 |
+
| `train_clean_100.lance` | train.clean.100 | 28,539 | 100-hour clean training subset |
|
| 31 |
+
|
| 32 |
+
> The 360-hour and 500-hour LibriSpeech subsets (`train.360`, `train.other.500`) are **not** bundled here. To extend the dataset, point `librispeech/dataprep.py` at additional splits.
|
| 33 |
+
|
| 34 |
+
## Schema
|
| 35 |
+
|
| 36 |
+
| Column | Type | Notes |
|
| 37 |
+
|---|---|---|
|
| 38 |
+
| `id` | `string` | Utterance id (e.g. `1272-128104-0000`) |
|
| 39 |
+
| `audio` | `large_binary` | Inline FLAC bytes (16 kHz mono) |
|
| 40 |
+
| `sampling_rate` | `int32` | Always 16,000 |
|
| 41 |
+
| `text` | `string` | Reference transcript |
|
| 42 |
+
| `speaker_id` | `int64` | LibriVox speaker id |
|
| 43 |
+
| `chapter_id` | `int64` | LibriVox chapter id |
|
| 44 |
+
| `num_chars` | `int32` | Length of `text` in characters |
|
| 45 |
+
| `text_emb` | `fixed_size_list<float32, 384>` | sentence-transformers `all-MiniLM-L6-v2` (cosine-normalized) |
|
| 46 |
+
|
| 47 |
+
## Pre-built indices
|
| 48 |
+
|
| 49 |
+
- `IVF_PQ` on `text_emb` — `metric=cosine`
|
| 50 |
+
- `INVERTED` (FTS) on `text`
|
| 51 |
+
- `BTREE` on `id`, `speaker_id`, `chapter_id`
|
| 52 |
+
|
| 53 |
+
## Quick start
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
import lance
|
| 57 |
+
|
| 58 |
+
ds = lance.dataset("hf://datasets/lance-format/librispeech-clean-lance/data/test_clean.lance")
|
| 59 |
+
print(ds.count_rows(), ds.schema.names, ds.list_indices())
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Read one utterance and play it
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from pathlib import Path
|
| 66 |
+
import lance
|
| 67 |
+
|
| 68 |
+
ds = lance.dataset("hf://datasets/lance-format/librispeech-clean-lance/data/test_clean.lance")
|
| 69 |
+
row = ds.take([0], columns=["id", "audio", "text", "speaker_id"]).to_pylist()[0]
|
| 70 |
+
|
| 71 |
+
Path(f"{row['id']}.flac").write_bytes(row["audio"])
|
| 72 |
+
print("speaker:", row["speaker_id"])
|
| 73 |
+
print("transcript:", row["text"])
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
You can decode the FLAC bytes in-memory with `soundfile` and feed them straight into a model:
|
| 77 |
+
|
| 78 |
+
```python
|
| 79 |
+
import io
|
| 80 |
+
import soundfile as sf
|
| 81 |
+
|
| 82 |
+
samples, sr = sf.read(io.BytesIO(row["audio"]))
|
| 83 |
+
print(samples.shape, sr)
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
## Semantic transcript retrieval
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
import lance
|
| 90 |
+
import pyarrow as pa
|
| 91 |
+
from sentence_transformers import SentenceTransformer
|
| 92 |
+
|
| 93 |
+
encoder = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", device="cuda")
|
| 94 |
+
q = encoder.encode(["a person talking about astronomy"], normalize_embeddings=True)[0]
|
| 95 |
+
|
| 96 |
+
ds = lance.dataset("hf://datasets/lance-format/librispeech-clean-lance/data/train_clean_100.lance")
|
| 97 |
+
emb_field = ds.schema.field("text_emb")
|
| 98 |
+
hits = ds.scanner(
|
| 99 |
+
nearest={"column": "text_emb", "q": pa.array([q.tolist()], type=emb_field.type)[0], "k": 5},
|
| 100 |
+
columns=["id", "speaker_id", "text"],
|
| 101 |
+
).to_table().to_pylist()
|
| 102 |
+
for h in hits:
|
| 103 |
+
print(h)
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
## Full-text and per-speaker filtering
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
ds = lance.dataset("hf://datasets/lance-format/librispeech-clean-lance/data/train_clean_100.lance")
|
| 110 |
+
|
| 111 |
+
# Word search via the FTS index.
|
| 112 |
+
hits = ds.scanner(full_text_query="universe stars", columns=["id", "text"], limit=10).to_table()
|
| 113 |
+
|
| 114 |
+
# All utterances by a given speaker.
|
| 115 |
+
sp = ds.scanner(filter="speaker_id = 1272", columns=["id", "chapter_id", "text"], limit=10).to_table()
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
## Why Lance?
|
| 119 |
+
|
| 120 |
+
- One dataset for audio + transcripts + embeddings + indices — no parallel folder of FLAC files plus a transcript JSON.
|
| 121 |
+
- On-disk vector and full-text indices live next to the data, so search works on local copies and on the Hub.
|
| 122 |
+
- Schema evolution: add columns (alternate transcripts, speaker embeddings, model predictions) without rewriting the data.
|
| 123 |
+
|
| 124 |
+
## Source & license
|
| 125 |
+
|
| 126 |
+
Converted from [`openslr/librispeech_asr`](https://huggingface.co/datasets/openslr/librispeech_asr). LibriSpeech is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) and is built from the public-domain LibriVox audiobook corpus.
|
| 127 |
+
|
| 128 |
+
## Citation
|
| 129 |
+
|
| 130 |
+
```
|
| 131 |
+
@inproceedings{panayotov2015librispeech,
|
| 132 |
+
title={LibriSpeech: An ASR corpus based on public domain audiobooks},
|
| 133 |
+
author={Panayotov, Vassil and Chen, Guoguo and Povey, Daniel and Khudanpur, Sanjeev},
|
| 134 |
+
booktitle={IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP)},
|
| 135 |
+
year={2015}
|
| 136 |
+
}
|
| 137 |
+
```
|
data/dev_clean.lance/_indices/13807ed9-f4e9-47a9-a370-f66842a13c36/index.idx
ADDED
|
Binary file (25 kB). View file
|
|
|
data/dev_clean.lance/_indices/41f3d2e6-9403-4743-9dd0-11ad21ce596a/page_data.lance
ADDED
|
Binary file (32.6 kB). View file
|
|
|
data/dev_clean.lance/_indices/41f3d2e6-9403-4743-9dd0-11ad21ce596a/page_lookup.lance
ADDED
|
Binary file (1.27 kB). View file
|
|
|
data/dev_clean.lance/_indices/9a39e47f-2244-4d7f-8564-52aa87d339a7/metadata.lance
ADDED
|
Binary file (733 Bytes). View file
|
|
|
data/dev_clean.lance/_indices/9a39e47f-2244-4d7f-8564-52aa87d339a7/part_0_docs.lance
ADDED
|
Binary file (7.56 kB). View file
|
|
|
data/dev_clean.lance/_indices/9a39e47f-2244-4d7f-8564-52aa87d339a7/part_0_tokens.lance
ADDED
|
Binary file (36.8 kB). View file
|
|
|
data/dev_clean.lance/_indices/acb15c7c-763e-4214-8118-f0fa34a8203c/page_data.lance
ADDED
|
Binary file (6.09 kB). View file
|
|
|
data/dev_clean.lance/_indices/acb15c7c-763e-4214-8118-f0fa34a8203c/page_lookup.lance
ADDED
|
Binary file (1.26 kB). View file
|
|
|
data/dev_clean.lance/_indices/e3914d27-a78c-433b-afe6-968b262a62ec/page_data.lance
ADDED
|
Binary file (5.58 kB). View file
|
|
|
data/dev_clean.lance/_indices/e3914d27-a78c-433b-afe6-968b262a62ec/page_lookup.lance
ADDED
|
Binary file (1.26 kB). View file
|
|
|
data/dev_clean.lance/_transactions/0-ad6423c3-fd32-4f22-9cc4-e8acbf8d344c.txn
ADDED
|
Binary file (433 Bytes). View file
|
|
|
data/dev_clean.lance/_transactions/1-c6c62f46-c778-4d31-aa84-1b3034bdb49a.txn
ADDED
|
Binary file (188 Bytes). View file
|
|
|
data/dev_clean.lance/_transactions/2-39e7fdca-bba3-4eaf-af80-579b2d2f3012.txn
ADDED
|
Binary file (280 Bytes). View file
|
|
|
data/dev_clean.lance/_transactions/3-67c08cc9-73ac-4ccf-a045-32773c3161a0.txn
ADDED
|
Binary file (190 Bytes). View file
|
|
|
data/dev_clean.lance/_transactions/4-a6e530f6-8708-4924-bfb0-72edfd0294da.txn
ADDED
|
Binary file (197 Bytes). View file
|
|
|
data/dev_clean.lance/_transactions/5-773b021e-7cc1-47be-9c5b-fe92a32b6021.txn
ADDED
|
Binary file (197 Bytes). View file
|
|
|
data/dev_clean.lance/_versions/18446744073709551609.manifest
ADDED
|
Binary file (1.55 kB). View file
|
|
|
data/dev_clean.lance/_versions/18446744073709551610.manifest
ADDED
|
Binary file (1.4 kB). View file
|
|
|
data/dev_clean.lance/_versions/18446744073709551611.manifest
ADDED
|
Binary file (1.24 kB). View file
|
|
|
data/dev_clean.lance/_versions/18446744073709551612.manifest
ADDED
|
Binary file (1.19 kB). View file
|
|
|
data/dev_clean.lance/_versions/18446744073709551613.manifest
ADDED
|
Binary file (857 Bytes). View file
|
|
|
data/dev_clean.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (951 Bytes). View file
|
|
|
data/test_clean.lance/_indices/005afec1-f7da-437e-b8e0-1cccc14ed4a3/metadata.lance
ADDED
|
Binary file (733 Bytes). View file
|
|
|
data/test_clean.lance/_indices/005afec1-f7da-437e-b8e0-1cccc14ed4a3/part_0_docs.lance
ADDED
|
Binary file (7.56 kB). View file
|
|
|
data/test_clean.lance/_indices/005afec1-f7da-437e-b8e0-1cccc14ed4a3/part_0_tokens.lance
ADDED
|
Binary file (35.2 kB). View file
|
|
|
data/test_clean.lance/_indices/171fb3fb-30e6-4b5b-8b7b-402f121e1864/page_data.lance
ADDED
|
Binary file (5.58 kB). View file
|
|
|
data/test_clean.lance/_indices/171fb3fb-30e6-4b5b-8b7b-402f121e1864/page_lookup.lance
ADDED
|
Binary file (1.26 kB). View file
|
|
|
data/test_clean.lance/_indices/4e523b97-3020-4ecf-894f-c75104abab4a/page_data.lance
ADDED
|
Binary file (30.5 kB). View file
|
|
|
data/test_clean.lance/_indices/4e523b97-3020-4ecf-894f-c75104abab4a/page_lookup.lance
ADDED
|
Binary file (1.27 kB). View file
|
|
|
data/test_clean.lance/_indices/9ebdfeaa-4496-41fa-a6c5-a6d2ed5ae046/page_data.lance
ADDED
|
Binary file (6.02 kB). View file
|
|
|
data/test_clean.lance/_indices/9ebdfeaa-4496-41fa-a6c5-a6d2ed5ae046/page_lookup.lance
ADDED
|
Binary file (1.26 kB). View file
|
|
|
data/test_clean.lance/_indices/d9204036-4e94-41fc-9a0b-b8622f2655ac/index.idx
ADDED
|
Binary file (25 kB). View file
|
|
|
data/test_clean.lance/_transactions/0-c6ad66ea-976a-47a2-b8cd-52256bdb3676.txn
ADDED
|
Binary file (433 Bytes). View file
|
|
|
data/test_clean.lance/_transactions/1-2ccd18fa-71bf-4f69-90cd-016a2ffaf17a.txn
ADDED
|
Binary file (188 Bytes). View file
|
|
|
data/test_clean.lance/_transactions/2-66b2ca79-3191-45c0-a9ec-cc62a1f8cf41.txn
ADDED
|
Binary file (280 Bytes). View file
|
|
|
data/test_clean.lance/_transactions/3-68132b62-b8ed-437f-953e-7928314d3972.txn
ADDED
|
Binary file (190 Bytes). View file
|
|
|
data/test_clean.lance/_transactions/4-19090426-3dba-45ef-a5f4-6f8c516e84cc.txn
ADDED
|
Binary file (197 Bytes). View file
|
|
|
data/test_clean.lance/_transactions/5-66fe1041-b412-4a25-8ce4-24a271a9f374.txn
ADDED
|
Binary file (197 Bytes). View file
|
|
|
data/test_clean.lance/_versions/18446744073709551609.manifest
ADDED
|
Binary file (1.55 kB). View file
|
|
|
data/test_clean.lance/_versions/18446744073709551610.manifest
ADDED
|
Binary file (1.4 kB). View file
|
|
|
data/test_clean.lance/_versions/18446744073709551611.manifest
ADDED
|
Binary file (1.24 kB). View file
|
|
|
data/test_clean.lance/_versions/18446744073709551612.manifest
ADDED
|
Binary file (1.19 kB). View file
|
|
|
data/test_clean.lance/_versions/18446744073709551613.manifest
ADDED
|
Binary file (857 Bytes). View file
|
|
|
data/test_clean.lance/_versions/18446744073709551614.manifest
ADDED
|
Binary file (951 Bytes). View file
|
|
|
data/train_clean_100.lance/_indices/31b3917d-c098-4943-a26f-5eb9df5e8088/metadata.lance
ADDED
|
Binary file (733 Bytes). View file
|
|
|
data/train_clean_100.lance/_indices/ce74571d-33af-4537-a912-e744f4f4dc73/page_data.lance
ADDED
|
Binary file (57.2 kB). View file
|
|
|
data/train_clean_100.lance/_versions/18446744073709551609.manifest
ADDED
|
Binary file (1.56 kB). View file
|
|
|
data/train_clean_100.lance/_versions/18446744073709551610.manifest
ADDED
|
Binary file (1.41 kB). View file
|
|
|
data/train_clean_100.lance/_versions/18446744073709551612.manifest
ADDED
|
Binary file (1.19 kB). View file
|
|
|