我是否可以通过某种方式确定文本中的哪些细分使用不同的语言,以便对其进行明确的格式化?
例如,假设我创建了一个文本文件
the dog chases the cat = der Hund jagt die Katze
"the dog is chasing the cat" in German would be "der Hund jagt die Katze"
现在假设的脚本必须解析这个文件,用德语识别片段并将其转换为(例如)到
the dog chases the cat = **der Hund jagt die Katze**
"the dog is chasing the cat" in German would be "**der Hund jagt die Katze**"