Download src/jumpforge/normalization.py from jumplander/JumpForge-Agentic-SE-3K: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/datasets/jumplander/JumpForge-Agentic-SE-3K/resolve/main/src/jumpforge/normalization.py
- Command line
-
hf download hf://datasets/jumplander/JumpForge-Agentic-SE-3K/src/jumpforge/normalization.py
-
curl -L -o normalization.py https://huggingface.co/datasets/jumplander/JumpForge-Agentic-SE-3K/resolve/main/src/jumpforge/normalization.py
196 Bytes
| import re | |
| def normalize_text(text): | |
| text = text.lower() | |
| text = re.sub(r"\b\d+\b", "<n>", text) | |
| text = re.sub(r"[^a-z0-9<> ]+", " ", text) | |
| return re.sub(r"\s+", " ", text).strip() | |