File size: 467 Bytes
46ab34e
 
401c5c7
9cd2c81
 
 
 
 
 
 
 
 
 
 
401c5c7
46ab34e
925b582
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import sys
import types

# Create a dummy japanese module
japanese_patch = types.ModuleType("japanese")

# Add a no-op placeholder for distribute_phone
def distribute_phone(*args, **kwargs):
    return args[0] if args else ""

japanese_patch.distribute_phone = distribute_phone

# Register dummy module in sys.modules
sys.modules["melo.text.japanese"] = japanese_patch

# Then import cleaner safely
#from melo.text import cleaner  # this will now skip Japanese logic