识别文本中不同(真实)语言的片段并应用某些规则

时间:2018-02-27 11:39:19

标签: regex scripting linguistics

我是否可以通过某种方式确定文本中的哪些细分使用不同的语言,以便对其进行明确的格式化?

例如,假设我创建了一个文本文件

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**"

0 个答案:

没有答案
相关问题