Heng2004 commited on
Commit
840ac8c
Β·
verified Β·
1 Parent(s): 4faec25

Delete data/text_utils.py

Browse files
Files changed (1) hide show
  1. data/text_utils.py +0 -16
data/text_utils.py DELETED
@@ -1,16 +0,0 @@
1
- # data/text_utils.py – shared text helpers
2
-
3
- import re
4
-
5
-
6
- def normalize_question(q: str) -> str:
7
- """
8
- Normalize Lao question:
9
- - lowercase
10
- - remove basic punctuation
11
- - collapse spaces
12
- """
13
- q = q.lower()
14
- q = re.sub(r"[?!?!\.\,\:\;\"β€œβ€'β€˜β€™]", " ", q)
15
- q = re.sub(r"\s+", " ", q)
16
- return q.strip()