Download preprocessing/typo_map.py from Muxperts/Veda: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/spaces/Muxperts/Veda/resolve/main/preprocessing/typo_map.py
- Command line
-
hf download hf://spaces/Muxperts/Veda/preprocessing/typo_map.py
-
curl -L -o typo_map.py https://huggingface.co/spaces/Muxperts/Veda/resolve/main/preprocessing/typo_map.py
809 Bytes
| """ | |
| Token-level typo corrections. | |
| Strictly single-word mappings only. | |
| """ | |
| print("\n>>> DEBUG: [Import] preprocessing/typo_map.py loaded") | |
| TYPO_MAP = { | |
| # students | |
| "stutents": "students", | |
| "stutends": "students", | |
| "studens": "students", | |
| "studnts": "students", | |
| # listening / attention | |
| "listning": "listening", | |
| "listing": "listening", | |
| "lisning": "listening", | |
| "attension": "attention", | |
| "attentin": "attention", | |
| "attensioned": "attention", | |
| # behavior / behaviour | |
| "behavour": "behavior", | |
| "behaviour": "behavior", | |
| # confusion | |
| "confusd": "confused", | |
| "confution": "confusion", | |
| # noise | |
| "noice": "noise", | |
| # participation | |
| "partcipation": "participation", | |
| "participateing": "participating", | |
| } | |