File size: 809 Bytes
59d9f71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""

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",
}