How tishtakalita/code-switch-prediction works
This repository is an experimental research project on predicting upcoming Chinese–English code-switches from raw speech. Its documented workflow constructs verified switch labels, evaluates language identity and pre-switch signals, and compares SSL representations and prediction settings against baselines. The tree contains notebooks and result artifacts, but the notebook contents were not provided; links between particular notebooks and outputs are therefore omitted. The proposed temporal-prediction, comparative, and ablation work is documented in the README, but no implementation is identifiable in the tree.
Main entry points: README.md Documented Methodology · 01_code_switch_timestamp_extraction.ipynb Switch Timestamps · language_identity_evaluation.ipynb Language Identity · 01_pre_switch_validation.ipynb Pre-switch Validation
Components 31
Ground Truth
- Switch Timestamps
ground_truth/01_code_switch_timestamp_extraction.ipynb - Switch Metadata
ground_truth/02_code_switch_metadata_creation.ipynb - Representative Subset
ground_truth/03_representative_subset_selection.ipynb
Feasibility Studies
- Language Identity
feasibility_study/FS1/language_identity_evaluation.ipynb - Pre-switch Validation
feasibility_study/FS2/01_pre_switch_validation.ipynb - Pre-switch Visualization
feasibility_study/FS2/02_pre_switch_visualization.ipynb - Pre-switch Test
feasibility_study/FS2/03_pre_switch_test.ipynb
Model Selection
- SSL Layer Selection
methodology/ssl_model_selection/ssl_model_layer_selection.ipynb - HuBERT Validation
methodology/ssl_model_selection/hubert_pre_switch_validation.ipynb - WavLM Validation
methodology/ssl_model_selection/wavlm_pre_switch_validation.ipynb - XLS-R Variant 1
methodology/ssl_model_selection/xls-r_1_pre_switch_validation.ipynb - XLS-R Variant 2
methodology/ssl_model_selection/xls-r_2_pre_switch_validation.ipynb - Base-rate Baseline
baseline/B1/base_rate_pre_switch.ipynb - Documented Methodology
README.md
Results
- Timestamp Data
outputs/code_switch_timestamps.json - Metadata Data
outputs/code_switch_metadata.json - Coverage Subset
outputs/coverage_subset.json - Identity Results
outputs/fs1_language_identity_results.json - Validation Results
outputs/fs2_pre_switch_validation.json - Test Results
outputs/fs2_pre_switch_test.json - HuBERT Results
outputs/hubert_pre_switch_validation.json - WavLM Results
outputs/wavlm_pre_switch_validation.json - XLS-R 1 Results
outputs/xls-r_1_pre_switch_validation.json - XLS-R 2 Results
outputs/xls-r_2_pre_switch_validation.json - Baseline Results
outputs/b1_base_rate_results.json - ROC-AUC Ranking
outputs/ranking_roc_auc.csv - Brier Ranking
outputs/ranking_brier.csv - Log-loss Ranking
outputs/ranking_log_loss.csv - ROC-AUC Ranking Data
outputs/ranking_roc_auc.csv
Other components
- Researcher
- ASCEND Audio
Connections 16
- Researcher → Switch Timestamps: constructs labels
README.md - ASCEND Audio → Switch Timestamps: provides audio
README.md - Switch Timestamps → Switch Metadata: creates metadata
README.md - Researcher → Representative Subset: verifies subset
README.md - ASCEND Audio → Language Identity: provides raw speech
README.md - ASCEND Audio → Pre-switch Validation: provides raw speech
README.md - ASCEND Audio → Documented Methodology: is analyzed as speech
README.md - Documented Methodology → Language Identity: describes identity study
README.md - Documented Methodology → Pre-switch Validation: describes pre-switch study
README.md - Documented Methodology → SSL Layer Selection: proposes layer search
README.md - Documented Methodology → Base-rate Baseline: documents baseline
README.md - Documented Methodology → HuBERT Validation: documents model comparison
README.md - Documented Methodology → WavLM Validation: documents model comparison
README.md - Documented Methodology → XLS-R Variant 1: documents model comparison
README.md - Documented Methodology → XLS-R Variant 2: documents model comparison
README.md - Documented Methodology → Documented Methodology: defines temporal prediction
README.md