我需要代码来使翻译员将单词从英语翻译为法语 [英] I need code to make a translator to translate words from english to french

查看:82
本文介绍了我需要代码来使翻译员将单词从英语翻译为法语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要翻译器程序的代码.

如何使用该应用程序翻译文档中的每个单词,如果找不到该单词的翻译,则文本应保持原样.

I want the code for a translator program.

How to translate each word in a document with that app, if no translation of the word is found the text should remain as is.

How can do this?

推荐答案

它不能那样工作.
您尝试做工作,被卡住,问了一个问题.

仅要求代码就可以完成整个工作,这是使人们烦恼的好方法.

以及您如何期望这种愚蠢的简单技术有效?
例如,英语单词"dear"可以表示昂贵",被爱的人",正式的问候",珍惜",认真"和衷心".您希望算法选择哪种算法?
It doesn''t work like that.
You try to do your work, you get stuck, you ask a question.

Just demanding code to do the whole thing is a good way to annoy people.

And how the heck do you expect a stupidly simple technique as that to work?
For example, the English word "dear" can mean "expensive", "loved one", "formal greetings", "cherished", "earnest" and "heartfelt". Which one do you expect your algorithm to select?


我认为:
首先,如果这样做,您的程序必须很大.
如果可以的话,请在您的程序中使用Google翻译.
i think:
first,if you do this,your program must be very very big.
if can,using google translate,in your program.


这篇关于我需要代码来使翻译员将单词从英语翻译为法语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆