update README
Browse files
README.md
CHANGED
|
@@ -1,43 +1,42 @@
|
|
| 1 |
# SAP²-ASR Dataset
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
## 📖
|
| 6 |
|
| 7 |
-
SAP²
|
| 8 |
|
| 9 |
-
###
|
| 10 |
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
|
| 15 |
-
## 📊
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
### SlideSpeech
|
| 20 |
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
- `slidespeech_L95/`:
|
| 25 |
-
- `slidespeech_L95_filter/`:
|
| 26 |
-
- `
|
| 27 |
-
- `
|
| 28 |
-
- `slidespeech_L95_multitask/`: 多任务版本(对应论文中的JPI)
|
| 29 |
|
| 30 |
### LibriSpeech
|
| 31 |
|
| 32 |
-
-
|
| 33 |
-
-
|
| 34 |
-
-
|
| 35 |
-
- `train-clean-460_*.json`:
|
| 36 |
-
- `train-other-500_*.json`:
|
| 37 |
-
- `dev-clean_*.json`, `dev-other_*.json`:
|
| 38 |
-
- `test-clean_*.json`, `test-other_*.json`:
|
| 39 |
|
| 40 |
-
###
|
| 41 |
|
| 42 |
```json
|
| 43 |
{
|
|
@@ -55,42 +54,42 @@ SAP² 是一个用于上下文感知自动语音识别的新框架,能够动
|
|
| 55 |
}
|
| 56 |
```
|
| 57 |
|
| 58 |
-
|
| 59 |
-
- `<|startofcontext|>`
|
| 60 |
-
- `<audio>...</audio>`:
|
| 61 |
|
| 62 |
-
## 🚀
|
| 63 |
|
| 64 |
-
###
|
| 65 |
|
| 66 |
```python
|
| 67 |
import json
|
| 68 |
|
| 69 |
-
#
|
| 70 |
with open('slidespeech/slidespeech_L95_filter/train.json', 'r') as f:
|
| 71 |
slidespeech_train = json.load(f)
|
| 72 |
|
| 73 |
-
#
|
| 74 |
with open('librispeech/train-clean-460_filter.json', 'r') as f:
|
| 75 |
librispeech_train = json.load(f)
|
| 76 |
```
|
| 77 |
|
| 78 |
-
###
|
| 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 |
-
|
| 105 |
|
| 106 |
-
## 📚
|
| 107 |
|
| 108 |
-
-
|
| 109 |
-
-
|
| 110 |
-
- **SlideSpeech
|
| 111 |
-
- **LibriSpeech
|
| 112 |
|
| 113 |
-
## 🏛
|
| 114 |
|
| 115 |
-
|
| 116 |
|
| 117 |
-
## ⚠️
|
| 118 |
|
| 119 |
-
1.
|
| 120 |
-
2.
|
| 121 |
-
3.
|
| 122 |
|
| 123 |
---
|
| 124 |
|
| 125 |
-
|
| 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)**
|
|
|
|
|
|
|
|
|
|
|
|