This project aims to explore the trade-off between accuracy and processing time of ASR models and to develop a robust topic segmentation algorithm. It also develops a FastAPI web-based MVP.
The first phase of this project evaluates five ASR models on 34 videos collected from MIT OpenCourseWare. The dataset includes manually corrected transcripts, which serve as the ground truth and can be provided on request. The evaluation also explores the effect of audio enhancement techniques on Word Error Rate (WER) and Real-Time Factor (RTF).
git clone https://github.com/Alexiuszz/E2E-Video-Processing-system.git
cd DatasetProcessing
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python helper/create_csv_from_dir.py
python video2audio.py
python audio_enhancement.py
cd ../ASR/batch_scripts
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
.env file:OPENAI_API_KEY=your_openai_key
BASE_DIR=/path/to/your/log/output
python whisper_batch.py
To evaluate Word Error Rate:
python WER_hpc.py
python WER_hpc.py
The second phase of the project focuses on developing a robust topic segmentation algorithm, evaluated against three benchmark datasets:
Baseline comparison models include:
The topic segmentation algorithm can be found at: topic_segment.py To begin:
cd Segmentation
The YTSeg dataset must be preprocessed before running the evaluation:
python3 datasets_/ytseg_data_preparation.py --input_dir "/path/to/raw/dataset/directory" --output_dir "/path/to/clean/dataset/directory"
main.pypython main.py --model <model_name> --dataset <dataset_name> [--test_size <num_samples>]
--model: Segmentation model. Options: random, bertseg, default, simple, even--dataset: Dataset to use. Options: ytseg, ami, icsi--test_size: (Optional) Limit number of samplesExample:
python main.py --model bertseg --dataset ytseg --test_size 10
Instructions for running the FastAPI MVP can be found in the README.md of the FastAPI directory.
24 commits
Python
80.3%
TypeScript
15.0%
CSS
2.5%
Shell
1.7%
This project aims to explore the trade-off between accuracy and processing time of ASR models and to develop a robust topic segmentation algorithm. It also develops a FastAPI web-based MVP.
The first phase of this project evaluates five ASR models on 34 videos collected from MIT OpenCourseWare. The dataset includes manually corrected transcripts, which serve as the ground truth and can be provided on request. The evaluation also explores the effect of audio enhancement techniques on Word Error Rate (WER) and Real-Time Factor (RTF).
git clone https://github.com/Alexiuszz/E2E-Video-Processing-system.git
cd DatasetProcessing
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python helper/create_csv_from_dir.py
python video2audio.py
python audio_enhancement.py
cd ../ASR/batch_scripts
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
.env file:OPENAI_API_KEY=your_openai_key
BASE_DIR=/path/to/your/log/output
python whisper_batch.py
To evaluate Word Error Rate:
python WER_hpc.py
python WER_hpc.py
The second phase of the project focuses on developing a robust topic segmentation algorithm, evaluated against three benchmark datasets:
Baseline comparison models include:
The topic segmentation algorithm can be found at: topic_segment.py To begin:
cd Segmentation
The YTSeg dataset must be preprocessed before running the evaluation:
python3 datasets_/ytseg_data_preparation.py --input_dir "/path/to/raw/dataset/directory" --output_dir "/path/to/clean/dataset/directory"
main.pypython main.py --model <model_name> --dataset <dataset_name> [--test_size <num_samples>]
--model: Segmentation model. Options: random, bertseg, default, simple, even--dataset: Dataset to use. Options: ytseg, ami, icsi--test_size: (Optional) Limit number of samplesExample:
python main.py --model bertseg --dataset ytseg --test_size 10
Instructions for running the FastAPI MVP can be found in the README.md of the FastAPI directory.
24 commits
Python
80.3%
TypeScript
15.0%
CSS
2.5%
Shell
1.7%