如何使用任何第三方api将英文文本转换为印地语。 [英] How to convert english text to hindi with out using any third party api.

查看:78
本文介绍了如何使用任何第三方api将英文文本转换为印地语。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用Google或任何其他API的情况下将英文文本转换为印地语。由于每个API都有速率限制。我需要通过C#代码进行转换。



我尝试了什么:



我试过谷歌API,但它有一个速率限制。

How can I convert English text to Hindi without using Google or any other API. As there is a rate limit in each API. I need to do the conversion through C# code.

What I have tried:

I have tried google API but it has a rate limit.

推荐答案

我不知道我们可以在VisualStudio中创建一个API。它如果你可以帮我编写部分而不是愚蠢的建议,那就太棒了。





他们不是愚蠢的建议 - 他们基本上说你完全不知道这里涉及多少工作。

Google翻译服务可能是成千上万年工作的产物:不是工时,而是男人年份。这不是一项微不足道的任务。

如果你想翻译问你的网页上的字符串,那么要么使用谷歌或支付翻译。

但是如果你想要在您的网站上实时动态地进行操作,然后编写API来实现它并不实际,除非您是语言天才和编码之神。
"I wasnt aware that we can create a API in VisualStudio. It will be great if you can help me out in coding part instead of stupid suggestions."


They aren't stupid suggestions - they are basically saying that you have absolutely no idea how much work is involved here.
The Google translation service is the product of probably thousands of man years of work: not man hours, but man years. This is not a trivial task.
If you want to translate ask the strings on your web pages, then either use Google or pay a translator.
But if you want to do it dynamically on your site in real time, then "writing an API to do it" is not really practical unless you are a linguistic genius, and a coding god.


如果不这样做想要使用谷歌api或第三方,你可以这样的方式



1.在会话中保持语言名称或ID



2.要翻译的内容在数据库表中保留单独的版本,将其与语言ID或语言名称相关联。如果您需要 - 您可以通过管理员对其进行编辑



3.在标题上保留标记用于选择语言和点击分配语言

id在会话中,并在网站打开时制作默认语言ID。



4.在网页中显示语言ID显示内容的会话值。
if you do not want to use google api or third party, you can approach this way

1.keep language name or ID in session

2.The contents ,for which you want translation ,keep separate versions in database tables linking it with language ID or language name.If you want -You can make it editable from admin

3. on header keep flags for selecting language and on clicking assign language
id in session and also make a default language ID when website opens.

4.Depending session value of language ID show content in webpage.


这篇关于如何使用任何第三方api将英文文本转换为印地语。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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