wikipedia_basque_ipa
收藏资源简介:
巴斯克维基百科音素化语料库(文本 + IPA 音素)是一个大规模配对语料库,源自巴斯克维基百科的转储数据。每条数据均包含段落级别的原始巴斯克语纯文本及其对应的国际音标(IPA)音素转录,其中重读元音采用撇号标记(如 a, e, i, o, u),塞擦音保留为多字符序列(如 tʃ, tʂ, ts)。该数据集专为训练巴斯克语的文本到语音(TTS)和字形到音素(G2P)模型而构建。数据集规模为1,672,981个样本,每个样本包含两个字段:text(巴斯克维基百科纯文本,段落级别)和phonemes(对应的IPA音素转录,单词以空格分隔,标点直接附着在前一个单词上,例如 astronomia.)。数据处理流程包括三个步骤:首先使用定制版WikiExtractor从维基百科XML转储中提取原始文本并去除标记;随后进行清洗,过滤短句、包含特殊字符或公式的句子,并执行文本规范化(如缩写处理、括号内容移除、连字符删除等);最后使用巴斯克语文本处理与音素化工具ahoNT进行数字扩展、缩写解析等规范化操作,并生成音素序列。数据集遵循知识共享署名-相同方式共享 4.0 国际许可协议(CC BY-SA 4.0)。
The Basque Wikipedia Phonemized Corpus (Text + IPA Phonemes) is a large-scale paired corpus derived from the dump data of the Basque Wikipedia. Each entry contains paragraph-level raw Basque plain text and its corresponding International Phonetic Alphabet (IPA) phonetic transcription, where stressed vowels are marked with an apostrophe (e.g., a, e, i, o, u), and affricates are preserved as multi-character sequences (e.g., tʃ, tʂ, ts). This corpus is specifically constructed for training text-to-speech (TTS) and grapheme-to-phoneme (G2P) models for the Basque language. The corpus contains 1,672,981 samples, with each sample having two fields: `text` (Basque Wikipedia plain text at the paragraph level) and `phonemes` (corresponding IPA phonetic transcriptions, where words are separated by spaces and punctuation is directly attached to the preceding word, e.g., astronomia.). The data processing workflow includes three steps: first, extract raw text and remove markup from the Wikipedia XML dump using a customized version of WikiExtractor; second, perform cleaning by filtering out short sentences, sentences containing special characters or formulas, and conduct text normalization such as abbreviation handling, parenthetical content removal, hyphen deletion, etc.; finally, use the Basque text processing and phonemization tool ahoNT to perform normalization operations including number expansion and abbreviation parsing, and generate phoneme sequences. The corpus is licensed under the Creative Commons Attribution-ShareAlike 4.0 International Public License (CC BY-SA 4.0).
数据集概述
- 名称: Basque Wikipedia Phonemized Corpus (Text + IPA phonemes)
- 语言: 巴斯克语 (eu)
- 许可证: CC-BY-SA-4.0
- 任务类别: 文本转语音 (text-to-speech)
- 标签: basque, phonemization, IPA, wikipedia
- 大小: 1M < n < 10M 行
数据集描述
该数据集来源于巴斯克维基百科转储,以段落级别提供了原始纯文本和对应的IPA音位转录。重读元音使用撇号约定(如 a, e 等),塞擦音保留为多字符序列(如 tʃ, tʂ)。该数据集旨在用于训练巴斯克语的文本转语音(TTS)和字素到音位(G2P)模型。
数据集统计
- 样本总数: 1,672,981 行
数据集结构
- 字段:
text(string): 巴斯克维基百科纯文本,按段落组织。phonemes(string): 对应的IPA音位转录,单词用空格分隔,标点符号直接附加在前一个单词上。
IPA符号约定
数据集使用标准IPA符号。
数据处理流程
- 维基百科提取:使用自定义版本WikiExtractor从巴斯克维基百科XML转储中提取原始文本,去除MediaWiki标记、HTML标签等,输出纯文本段落。
- 清洗:应用句子级过滤(去除短于100字符、含双引号、象棋符号、HTML符号等内容的句子)和文本规范化变换(如缩写处理、括号内容移除、空白标准化等)。
- 规范化与音位化:每个清洗后的句子首先使用ahoNT工具进行规范化(处理数字扩展、缩写解析等),然后进行音位化(将每个规范化的单词转换为音位序列,输出带重音标记和多字符塞擦音的IPA符号)。
使用示例
python from datasets import load_dataset
ds = load_dataset("HiTZ/wikipedia_basque_ipa", split="train") for example in ds.select(range(5)): print(example["text"]) print(example["phonemes"])
相关资源
- ahoNT — 巴斯克语文本规范化和音位化工具
- WikiExtractor — 从维基百科数据库备份转储中提取和清洗文本的Python脚本
引用
使用该数据集时,请引用巴斯克维基百科,并致谢巴斯克大学AhoLab开发的音位化流水线。




