I\'ve got a series of text that is mostly English, but contains some phrases with Chinese characters. Here\'s two examples:
s1 = \"You say: 你好. I say: 再見\" s
You could always use a in-place replace of the matched regular expression by using re.sub() in python.
re.sub()
Try this:
print(re.sub(r'([\u4e00-\u9fff]+)', translate('\g<0>'), utf_line))