Datasets:
The dataset viewer is not available for this split.
Error code: TooBigContentError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
FLEURS in Lance
FLEURS is Google's Few-shot Learning Evaluation of Universal Representations of Speech benchmark. This release preserves 384,060 original recordings and transcripts across 102 language configurations. The original train, validation, and test counts are 271,798, 34,452, and 77,810. The all configuration is the union of the language configurations for each split. Pinned original dataset · FLEURS paper
| Path | Contents |
|---|---|
lance/utterances.lance |
One row per recording, with the original sentence ID, transcript variants, language and speaker labels, original WAV filename, archive path, and attribution |
lance/en_us_test.lance |
The same 647 English test rows in a small table for the exact search example |
lance/source-files.lance |
1,004 original files and their checksums, exposed as range-readable Lance Blob v2 values |
parquet-data/ |
All 389 original prepared Parquet files used by Data Studio for the same 103 configurations and 309 split combinations |
Open the utterances table and filter by lang_code and split to select a language split. To select an all split, filter by split alone. The path column is the portable WAV filename. The original prepared Parquets also retain the upstream builder's serialized path and audio features. The 306 byte-identical source WAV archives are under data/<language>/audio/. Split counts and release metadata · Full file inventory · Data Studio
Search transcripts and locate recordings
This release generates normalized 256-dimensional float32 vectors from each complete raw_transcription using the multilingual minishlab/potion-multilingual-128M checkpoint at revision 73908c3438cf03b6a01bcb9611d62b23d0726f08. Recordings of the same transcript share the same vector. The table has a cosine IVF_PQ index for larger searches. The example opens the small English test table and computes exact cosine distances across all 647 rows. It prints the cosine similarity, the sentence ID, and the distinct recording filename for five matches. Pinned query encoder
Install the dependencies with python -m pip install "pylance==14.0.3" "model2vec==0.10.0" huggingface_hub scipy.
import lance
from huggingface_hub import HfApi, snapshot_download
from model2vec import StaticModel
repo = "lance-format/fleurs-lance"
revision = HfApi(token=False).dataset_info(repo, token=False).sha
base = f"hf://datasets/{repo}"
options = {"hf_revision": revision}
utterances = lance.dataset(f"{base}/lance/en_us_test.lance", storage_options=options)
model_dir = snapshot_download(
"minishlab/potion-multilingual-128M",
revision="73908c3438cf03b6a01bcb9611d62b23d0726f08",
allow_patterns=["config.json", "tokenizer.json", "model.safetensors"],
token=False,
)
encoder = StaticModel.from_pretrained(model_dir, max_length=None)
query = "Fashion styles in the west lagged for decades because communication was slow."
vector = encoder.encode(query, max_length=None, normalize=True)
matches = utterances.to_table(
columns=["id", "lang_code", "split", "path", "raw_transcription", "text_source_url", "_distance"],
nearest={"column": "embedding", "q": vector, "k": 5, "metric": "cosine", "use_index": False},
).to_pylist()
for hit in matches:
print(f"{1 - hit['_distance']:.4f} {hit['lang_code']}/{hit['split']} {hit['id']} {hit['path']} {hit['raw_transcription']}")
Read an original WAV from Lance
The example reads a bounded prefix of the original English test archive as a Lance Blob v2 and exports the first WAV, one of the top matches above. For later members, stream the corresponding gzip archive and match the WAV filename in the utterance row.
import hashlib
import io
import tarfile
from pathlib import Path
import lance
from huggingface_hub import HfApi
from scipy.io import wavfile
repo = "lance-format/fleurs-lance"
revision = HfApi(token=False).dataset_info(repo, token=False).sha
base = f"hf://datasets/{repo}"
options = {"hf_revision": revision}
files = lance.dataset(
f"{base}/lance/source-files.lance",
storage_options=options,
base_store_params={base: options},
)
entry, = files.to_table(
columns=["source_path"],
filter="source_path = 'data/en_us/audio/test.tar.gz'",
with_row_id=True,
).to_pylist()
with files.take_blobs("payload", ids=[entry["_rowid"]])[0] as audio_archive:
prefix = audio_archive.read(768000)
with tarfile.open(fileobj=io.BytesIO(prefix), mode="r|gz") as archive:
member = next(item for item in archive if item.isfile())
assert member.name == "test/1003119935936341070.wav"
with archive.extractfile(member) as stream:
wav = stream.read()
assert hashlib.sha256(wav).hexdigest() == "33aca50159ec2e3cbcc894eb26faa916d6badb1b49fb75994973561540a7f012"
sample_rate, samples = wavfile.read(io.BytesIO(wav))
assert sample_rate == 16000
print(f"{sample_rate} Hz, {len(samples)} samples")
Path("1003119935936341070.wav").write_bytes(wav)
Source licenses and attribution
Google and the FLEURS authors release the speech dataset under CC BY 4.0. The included text derives from Meta's FLORES-101 dev and devtest transcripts, which retain CC BY-SA 4.0. The native table credits the original Wikinews, Wikivoyage, or Wikibooks page on every row through text_source_url, matched against Meta's first-party metadata. The linked pages preserve source contributor and license history. This conversion adds Lance tables, range-access references, the provenance join, and search embeddings. Original WAVs, TSVs, and Parquets are byte-identical. Original FLEURS card · CC BY 4.0 text · FLORES-101 source and citation · FLORES-101 CC BY-SA 4.0 text · Sentence-by-sentence attribution
- Downloads last month
- 313