sWuggy
收藏资源简介:
sWuggy是一个口语词汇判别基准数据集,用于评估口语语言模型。每个数据项包含一个真实单词和一个音位匹配的伪单词对,这些单词对已合成为音频形式。数据集的目的是通过要求模型为每对音频分配分数(如对数概率或伪对数似然),并计算真实单词得分高于匹配伪单词的配对比例,来评估模型的词汇判别能力。数据集包含两个主要部分:inftrain/集合是主要的评估材料,涵盖英语(en)和法语(fr)两种语言,每种语言下又按不同规模划分为testset_1、testset_2、testset_4、testset_8、testset_16、testset_32和testset_64等多个测试集;zrc2021/集合是ZeroSpeech 2021挑战赛中使用的sWuggy分割,仅包含英语,分为开发集(dev)和测试集(test)。数据以WebDataset tar分片格式存储,音频文件格式为.ogg(inftrain)和.wav(zrc2021),并附带CSV/TXT格式的元数据文件,包括每项的黄金标签(gold.csv)、词汇频率信息(frequencies/*.csv)以及文件映射(*_filesmap.txt)。该数据集严格用于模型评估,禁止作为训练数据使用。
sWuggy is a spoken word discrimination benchmark dataset for evaluating spoken language models. Each data item consists of a real word and a phonemically matched pseudoword pair, synthesized into audio. The dataset aims to assess models lexical discrimination ability by requiring them to assign scores (typically log probabilities or pseudo-log-likelihoods) to each audio pair and calculating the proportion of pairs where the real word scores higher than the matched pseudoword. The dataset includes two main parts: the inftrain/ set is the primary evaluation material, covering English (en) and French (fr), with each language subdivided into multiple test sets of varying sizes (testset_1, testset_2, testset_4, testset_8, testset_16, testset_32, testset_64); the zrc2021/ set is the sWuggy split used in the ZeroSpeech 2021 challenge, containing only English and divided into development (dev) and test sets. Data is stored in WebDataset tar shards, with audio file formats as .ogg (inftrain) and .wav (zrc2021), accompanied by CSV/TXT metadata files including gold labels (gold.csv), lexical frequency information (frequencies/*.csv), and file mappings (*_filesmap.txt). The dataset is strictly for model evaluation and prohibited from being used as training data.
数据集概述:sWuggy
sWuggy 是一个口语词汇判别基准(spoken lexical-discrimination benchmark)。数据集中每一项都是一个由真实单词(real word)和一个经过音位匹配的伪词(pseudo-word)组成的音频对。模型需要判断真实单词的概率是否高于其匹配的伪词。
主要用途
- 用于评估口语语言模型(spoken language models)。
- 仅限评估用途,不得用于训练。使用这些数据进行训练会污染基准测试结果。
数据集结构
数据集分为两个顶级集合:
inftrain/(主评估材料)- 按语言(英语
en、法语fr)和测试集(testset_1至testset_64)划分。 - 包含音频文件(WebDataset tar shards)和元数据文件(CSV)。
- 按语言(英语
zrc2021/(ZeroSpeech 2021 sWuggy 数据集)- 仅包含英语,分为开发集(
dev)和测试集(test)。
- 仅包含英语,分为开发集(
数据格式
- 音频以 WebDataset tar shards 形式打包。
inftrain/中的音频格式为 .ogg,zrc2021/中的音频格式为 .wav。- 元数据文件以 CSV 或 TXT 格式存储,位于音频目录旁。
元数据文件
gold.csv/*.gold.csv:包含每个项目的真实标签(gold labels)。frequencies/testset_N.csv:包含每个项目的词汇频率信息。*_filesmap.txt(仅zrc2021):包含项目标识符与音频文件的映射。
访问数据
使用 datasets 库流式加载音频:
python
from datasets import load_dataset
加载英语 inftrain 的 testset_1
ds = load_dataset( "webdataset", data_files={"test": "hf://datasets/coml/sWuggy/inftrain/en/audio/testset_1-*.tar"}, split="test", streaming=True, )
直接读取元数据(无需下载音频): python import polars as pl
gold = pl.read_csv("hf://datasets/coml/sWuggy/inftrain/en/gold.csv") freqs = pl.read_csv("hf://datasets/coml/sWuggy/inftrain/en/frequencies/testset_1.csv")
下载特定文件: python from huggingface_hub import hf_hub_download
path = hf_hub_download( repo_id="coml/sWuggy", repo_type="dataset", filename="inftrain/en/gold.csv", )
评估方法
- 对于每个单词/伪词对,模型需输出一个分数(通常是对数概率或伪对数似然值)。
- 准确率为真实单词得分高于其匹配伪词的概率。
许可证
- 基于 Academic Free License v3.0(afl-3.0) 发布。




