jymh commited on
Commit
5f4ec17
·
1 Parent(s): 9fca710

update README

Browse files
Files changed (1) hide show
  1. README.md +54 -59
README.md CHANGED
@@ -1,43 +1,42 @@
1
  # SAP²-ASR Dataset
2
 
3
- 本数据集用于 **SAP² (Speech-Aware Long Context Pruning and Integration)** 方法的上下文感知自动语音识别(ASR)研究。
4
 
5
- ## 📖 简介
6
 
7
- SAP² 是一个用于上下文感知自动语音识别的新框架,能够动态剪枝并集成相关的上下文关键词。该方法解决了在特定领域场景(如会议演讲)中利用长上下文信息的挑战,这些场景中大量来自OCR的文本上下文既包含相关信息,也包含大量噪声。
8
 
9
- ### 核心特性
10
 
11
- - **语音感知上下文剪枝**:动态过滤来自OCR的文本上下文,仅保留与语音内容直接相关的关键词
12
- - **跨模态上下文压缩**:使用语音驱动注意力池化(Speech-Driven Attention-based Pooling)将大量文本输入压缩为简洁的、与语音相关的上下文嵌入
13
- - **最先进的性能**:在 SlideSpeech 数据集上达到 7.71% 的词错误率(WER),在 LibriSpeech 数据集上达到 1.12% WER,相比非上下文基线,在偏向关键词识别方面相对提升了 41.1%
14
 
15
- ## 📊 数据集结构
16
 
17
- 本数据集包含两个主要子数据集:
18
 
19
  ### SlideSpeech
20
 
21
- - **来源**:SlideSpeech 是一个包含幻灯片的大规模音视频语料库,包含 1,705 个视频,超过 1,000 小时的音频,其中包括 473 小时的高质量转录语音
22
- - **数据格式**:JSON 格式,包含音频路径和带上下文关键词的对话格式
23
- - **目录结构**:
24
- - `slidespeech_L95/`: 原始数据(对应论文中PC)
25
- - `slidespeech_L95_filter/`: 训练TPI第一阶段
26
- - `slidespeech_L95_filtered_train`: 训练TPI第二阶段
27
- - `slidespeech_L95_5slides/`: 5张幻灯片版本
28
- - `slidespeech_L95_multitask/`: 多任务版本(对应论文中的JPI)
29
 
30
  ### LibriSpeech
31
 
32
- - **来源**:LibriSpeech 是一个大规模英语朗读语音语料库,源自 LibriVox 项目的有声读物
33
- - **数据格式**:JSON 格式,包含训练、验证和测试集的不同配置
34
- - **目录结构**:
35
- - `train-clean-460_*.json`: 训练集(clean460小时)
36
- - `train-other-500_*.json`: 训练集(other500小时)
37
- - `dev-clean_*.json`, `dev-other_*.json`: 验证集
38
- - `test-clean_*.json`, `test-other_*.json`: 测试集(不同规模:100, 500, 1000, 2000条)
39
 
40
- ### 数据格式示例
41
 
42
  ```json
43
  {
@@ -55,42 +54,42 @@ SAP² 是一个用于上下文感知自动语音识别的新框架,能够动
55
  }
56
  ```
57
 
58
- **关键标记**:
59
- - `<|startofcontext|>` `<|endofcontext|>`: 用于标记上下文关键词的特殊标记
60
- - `<audio>...</audio>`: 音频文件路径标记
61
 
62
- ## 🚀 使用方法
63
 
64
- ### 加载数据集
65
 
66
  ```python
67
  import json
68
 
69
- # 加载 SlideSpeech 数据集
70
  with open('slidespeech/slidespeech_L95_filter/train.json', 'r') as f:
71
  slidespeech_train = json.load(f)
72
 
73
- # 加载 LibriSpeech 数据集
74
  with open('librispeech/train-clean-460_filter.json', 'r') as f:
75
  librispeech_train = json.load(f)
76
  ```
77
 
78
- ### SAP² 模型一起使用
79
 
80
- 详细的使用说明、训练和推理代码请参考:
81
 
82
  **🔗 [SAP²-ASR GitHub Repository](https://github.com/jymh/SAP2-ASR.git)**
83
 
84
- 该仓库包含:
85
- - 完整的模型实现代码
86
- - 训练和推理脚本
87
- - 数据预处理工具
88
- - 评估脚本
89
- - 详细的使用文档
90
 
91
- ## 📎 引用
92
 
93
- 如果您在研究中使用了本数据集,请引用以下论文:
94
 
95
  ```bibtex
96
  @article{rong2025speechaware,
@@ -101,29 +100,25 @@ with open('librispeech/train-clean-460_filter.json', 'r') as f:
101
  }
102
  ```
103
 
104
- **论文链接**:[https://www.arxiv.org/abs/2511.11139](https://www.arxiv.org/abs/2511.11139)
105
 
106
- ## 📚 相关资源
107
 
108
- - **代码仓库**:[https://github.com/jymh/SAP2-ASR.git](https://github.com/jymh/SAP2-ASR.git)
109
- - **论文**:[arXiv:2511.11139](https://www.arxiv.org/abs/2511.11139)
110
- - **SlideSpeech 原始数据集**:[https://slidespeech.github.io/](https://slidespeech.github.io/)
111
- - **LibriSpeech 原始数据集**:[OpenSLR](https://www.openslr.org/12/)
112
 
113
- ## 🏛 许可证
114
 
115
- 本数据集的使用请遵循原始数据集的许可证要求。对于 SlideSpeech LibriSpeech,请参考其原始资源页面的许可证说明。
116
 
117
- ## ⚠️ 注意事项
118
 
119
- 1. 音频文件路径可能需要根据实际环境进行调整
120
- 2. 数据集文件较大,请确保有足够的存储空间
121
- 3. 使用前请仔细阅读 [GitHub 仓库](https://github.com/jymh/SAP2-ASR.git) 中的详细文档
122
 
123
  ---
124
 
125
- **更多信息和使用示例,请访问 [SAP²-ASR GitHub Repository](https://github.com/jymh/SAP2-ASR.git)**
126
-
127
- ---
128
- license: apache-2.0
129
- ---
 
1
  # SAP²-ASR Dataset
2
 
3
+ This dataset is designed for **SAP² (Speech-Aware Long Context Pruning and Integration)** research in contextualized automatic speech recognition (ASR).
4
 
5
+ ## 📖 Introduction
6
 
7
+ SAP² is a novel framework for contextualized automatic speech recognition that dynamically prunes and integrates relevant contextual keywords. This method addresses the challenge of leveraging long-context information in domain-specific scenarios (e.g., conference presentations) where extensive OCR-derived textual contexts contain both relevant information and considerable noise.
8
 
9
+ ### Key Features
10
 
11
+ - **Speech-Aware Context Pruning**: Dynamically filters OCR-derived textual contexts to retain only keywords directly relevant to speech content
12
+ - **Cross-Modal Context Compression**: Uses Speech-Driven Attention-based Pooling to compress extensive textual inputs into concise, speech-relevant context embeddings
13
+ - **State-of-the-Art Performance**: Achieves WER of 7.71% on SlideSpeech and 1.12% on LibriSpeech, with a 41.1% relative improvement in biased keyword recognition over non-contextual baselines
14
 
15
+ ## 📊 Dataset Structure
16
 
17
+ This dataset contains two main sub-datasets:
18
 
19
  ### SlideSpeech
20
 
21
+ - **Source**: SlideSpeech is a large-scale audio-visual corpus enriched with slides, containing 1,705 videos with 1,000+ hours of audio, including 473 hours of high-quality transcribed speech
22
+ - **Data Format**: JSON format containing audio paths and conversational format with contextual keywords
23
+ - **Directory Structure**:
24
+ - `slidespeech_L95/`: Original data
25
+ - `slidespeech_L95_filter/`: Filtered data
26
+ - `slidespeech_L95_5slides/`: 5-slide version
27
+ - `slidespeech_L95_multitask/`: Multi-task version
 
28
 
29
  ### LibriSpeech
30
 
31
+ - **Source**: LibriSpeech is a large-scale corpus of read English speech, derived from audiobooks in the LibriVox project
32
+ - **Data Format**: JSON format with different configurations for training, validation, and test sets
33
+ - **Directory Structure**:
34
+ - `train-clean-460_*.json`: Training set (clean, 460 hours)
35
+ - `train-other-500_*.json`: Training set (other, 500 hours)
36
+ - `dev-clean_*.json`, `dev-other_*.json`: Validation sets
37
+ - `test-clean_*.json`, `test-other_*.json`: Test sets (various sizes: 100, 500, 1000, 2000 samples)
38
 
39
+ ### Data Format Example
40
 
41
  ```json
42
  {
 
54
  }
55
  ```
56
 
57
+ **Key Tokens**:
58
+ - `<|startofcontext|>` and `<|endofcontext|>`: Special tokens for marking contextual keywords
59
+ - `<audio>...</audio>`: Audio file path token
60
 
61
+ ## 🚀 Usage
62
 
63
+ ### Loading the Dataset
64
 
65
  ```python
66
  import json
67
 
68
+ # Load SlideSpeech dataset
69
  with open('slidespeech/slidespeech_L95_filter/train.json', 'r') as f:
70
  slidespeech_train = json.load(f)
71
 
72
+ # Load LibriSpeech dataset
73
  with open('librispeech/train-clean-460_filter.json', 'r') as f:
74
  librispeech_train = json.load(f)
75
  ```
76
 
77
+ ### Using with SAP² Model
78
 
79
+ For detailed usage instructions, training and inference code, please refer to:
80
 
81
  **🔗 [SAP²-ASR GitHub Repository](https://github.com/jymh/SAP2-ASR.git)**
82
 
83
+ The repository contains:
84
+ - Complete model implementation code
85
+ - Training and inference scripts
86
+ - Data preprocessing tools
87
+ - Evaluation scripts
88
+ - Detailed documentation
89
 
90
+ ## 📎 Citation
91
 
92
+ If you use this dataset in your research, please cite the following paper:
93
 
94
  ```bibtex
95
  @article{rong2025speechaware,
 
100
  }
101
  ```
102
 
103
+ **Paper Link**: [https://www.arxiv.org/abs/2511.11139](https://www.arxiv.org/abs/2511.11139)
104
 
105
+ ## 📚 Related Resources
106
 
107
+ - **Code Repository**: [https://github.com/jymh/SAP2-ASR.git](https://github.com/jymh/SAP2-ASR.git)
108
+ - **Paper**: [arXiv:2511.11139](https://www.arxiv.org/abs/2511.11139)
109
+ - **SlideSpeech Original Dataset**: [https://slidespeech.github.io/](https://slidespeech.github.io/)
110
+ - **LibriSpeech Original Dataset**: [OpenSLR](https://www.openslr.org/12/)
111
 
112
+ ## 🏛 License
113
 
114
+ The use of this dataset should follow the license requirements of the original datasets. For SlideSpeech and LibriSpeech, please refer to the license information on their original resource pages.
115
 
116
+ ## ⚠️ Notes
117
 
118
+ 1. Audio file paths may need to be adjusted according to your actual environment
119
+ 2. The dataset files are large, please ensure you have sufficient storage space
120
+ 3. Please carefully read the detailed documentation in the [GitHub repository](https://github.com/jymh/SAP2-ASR.git) before use
121
 
122
  ---
123
 
124
+ **For more information and usage examples, please visit [SAP²-ASR GitHub Repository](https://github.com/jymh/SAP2-ASR.git)**