当前位置: 首页 > news >正文

免费自助站制作在线国外seo比较好的博客网站

免费自助站制作在线,国外seo比较好的博客网站,互联网创业项目什么赚钱,网站模板定制大纲 1 什么是Translate2 Aws Translate是怎么运作的3 Aws Translate和Google Translate的区别4 迁移任务4.1 迁移原因 5 Aws Translate的Go demo6 迁移中遇到的问题6.1 账号和权限问题:6.2 小语种 1 什么是Translate Translate是一种文本翻译服务,它使…

大纲

  • 1 什么是Translate
  • 2 Aws Translate是怎么运作的
  • 3 Aws Translate和Google Translate的区别
  • 4 迁移任务
    • 4.1 迁移原因
  • 5 Aws Translate的Go demo
  • 6 迁移中遇到的问题
    • 6.1 账号和权限问题:
    • 6.2 小语种

1 什么是Translate

  • Translate是一种文本翻译服务,它使用先进的机器学习技术来提供高质量的按需翻译。

2 Aws Translate是怎么运作的

  • Amazon Translate服务基于为语言翻译训练的神经网络。这使您能够在源语言(被翻译文本的原始语言)和目标语言(文本被翻译成的语言)之间进行翻译。
  • 使用Amazon Translate时,您需要提供源文本,并获取输出文本,
    1 源文本— 您要翻译的文本。您以 UTF-8 格式提供源文本。
    2 输出文本— Amazon Translate已翻译成目标语言的文本。输出文本也是UTF-8格式。根据源语言和目标语言,输出文本中的字符数可能多于输入文本中的字符数。
  • 翻译模型有两个组件,编码器和解码器。编码器一次一个单词地读取源句子, 并构建一个捕捉其含义的语义表示。解码器使用语义表示在目标语言中一次生成一个单词的翻译。
  • Amazon Translate使用注意力机制来理解上下文。这有助于它确定源文本中的哪些词与生成下一个目标词最相关。注意机制使解码器能够专注于源语句中最相关的部分。这可确保解码器正确翻译歧义词或短语。

3 Aws Translate和Google Translate的区别

特征Google TranslateAws Translate
免费试用支持支持
付款计划月免50W字+百万字费用月免200W字+按使用量付费
支持的语言数量10871
机器翻译集成支持支持
在线工具支持支持
团队协作不好
翻译记忆库不支持支持
加密云存储不支持支持
网站翻译小部件支持不支持
上下文编辑不支持支持
自动语言检查支持支持

4 迁移任务

我们本次的迁移任务是将原有集成了Google Translate服务,迁移到Aws Translate服务上。

4.1 迁移原因

  1. 降低在翻译上的费用,Aws的月免字数更多。
  2. 需要对翻译内容进行存储。
  3. 一个良好的团队写作。

5 Aws Translate的Go demo

package mainimport ("context""flag""fmt""github.com/aws/aws-sdk-go-v2/aws""github.com/aws/aws-sdk-go-v2/config""github.com/aws/aws-sdk-go-v2/credentials""github.com/aws/aws-sdk-go-v2/service/translate""log"
)func main() {cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-east-1"), config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider("xxxxxxx", "xxxxxxxxxxxxx", "")))if err != nil {log.Fatal(err, 1)}sourceText := flag.String("text", "hello world", "source text")sourceLC := flag.String("slc", "en", "source language code [en|ja|fr]...")targetLC := flag.String("tlc", "zh-c", "target language code [en|ja|fr]...")client := translate.NewFromConfig(cfg)result, err := client.TranslateText(context.TODO(), &translate.TranslateTextInput{SourceLanguageCode: aws.String(*sourceLC),TargetLanguageCode: aws.String(*targetLC),Text:               aws.String(*sourceText)})if err != nil {log.Fatal(err, 2)}fmt.Print(*result.TranslatedText)
}

6 迁移中遇到的问题

6.1 账号和权限问题:

我们在做迁移的时候需要在我们的服务器上安装aws cli

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

在服务上设置Aws账号

aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLES
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/PxRfiCYEXAMSPLEKEYSS
Default region name [None]: us-west-2
Default output format [None]: json

通过IAM对该用户设置Translate的角色赋予该用户使用Translate的权限
在这里插入图片描述
我们要遵循最小权限的策略
在这里插入图片描述
将这些设置好了,我们的demo就可以成功的翻译想翻译的文本了。

6.2 小语种

目前Aws支持71种语言,但是还是有很多语言没有被支持,我们可以选择该地区所在国家的官方语言来做翻译。目前Aws Global Service也在对更多的语言做支持。


文章转载自:
http://dinncoaram.bpmz.cn
http://dinncoleechcraft.bpmz.cn
http://dinncoovertype.bpmz.cn
http://dinncoleeward.bpmz.cn
http://dinncoabsorbance.bpmz.cn
http://dinncoalkalimetry.bpmz.cn
http://dinncounderdevelopment.bpmz.cn
http://dinncofiliate.bpmz.cn
http://dinncoatherosclerotic.bpmz.cn
http://dinncoedam.bpmz.cn
http://dinncoclaudication.bpmz.cn
http://dinncoamateur.bpmz.cn
http://dinncohollowhearted.bpmz.cn
http://dinncodeflation.bpmz.cn
http://dinncodielectric.bpmz.cn
http://dinncotouriste.bpmz.cn
http://dinncotrayful.bpmz.cn
http://dinncogleaner.bpmz.cn
http://dinncotypecasting.bpmz.cn
http://dinncodrugger.bpmz.cn
http://dinnconewspaperwoman.bpmz.cn
http://dinncoorthocharmonium.bpmz.cn
http://dinncosneeshing.bpmz.cn
http://dinncocamorrista.bpmz.cn
http://dinncototany.bpmz.cn
http://dinncoantipoetic.bpmz.cn
http://dinncoparrel.bpmz.cn
http://dinncoequanimous.bpmz.cn
http://dinncostimulative.bpmz.cn
http://dinncolog.bpmz.cn
http://dinncoinvitational.bpmz.cn
http://dinncohomelike.bpmz.cn
http://dinncoextraviolet.bpmz.cn
http://dinncoanorectal.bpmz.cn
http://dinncolevity.bpmz.cn
http://dinnconitrosyl.bpmz.cn
http://dinncophenolase.bpmz.cn
http://dinncocycloramic.bpmz.cn
http://dinncoblastomere.bpmz.cn
http://dinncoasteraceous.bpmz.cn
http://dinncodiscolorment.bpmz.cn
http://dinncophat.bpmz.cn
http://dinnconondividing.bpmz.cn
http://dinncoseawater.bpmz.cn
http://dinncosandro.bpmz.cn
http://dinncotheatricals.bpmz.cn
http://dinncoparanoia.bpmz.cn
http://dinncohexahydrothymol.bpmz.cn
http://dinncosundays.bpmz.cn
http://dinncolaical.bpmz.cn
http://dinncotabletop.bpmz.cn
http://dinncoregedit.bpmz.cn
http://dinncocheesed.bpmz.cn
http://dinncofitment.bpmz.cn
http://dinncogurnet.bpmz.cn
http://dinncodelusory.bpmz.cn
http://dinncomistreat.bpmz.cn
http://dinncoachromat.bpmz.cn
http://dinncoempiricist.bpmz.cn
http://dinncorink.bpmz.cn
http://dinncosignor.bpmz.cn
http://dinncobenjamin.bpmz.cn
http://dinncoptyalagogue.bpmz.cn
http://dinncodorian.bpmz.cn
http://dinncoaardwolf.bpmz.cn
http://dinncoandorra.bpmz.cn
http://dinncoranular.bpmz.cn
http://dinncooverhigh.bpmz.cn
http://dinncodiffractometer.bpmz.cn
http://dinncofoulmouthed.bpmz.cn
http://dinncomux.bpmz.cn
http://dinncounasked.bpmz.cn
http://dinncosith.bpmz.cn
http://dinncoredfish.bpmz.cn
http://dinncoabsolutely.bpmz.cn
http://dinncoglagolitic.bpmz.cn
http://dinncoleucocytosis.bpmz.cn
http://dinncohosting.bpmz.cn
http://dinncocomitia.bpmz.cn
http://dinnconixie.bpmz.cn
http://dinncotendence.bpmz.cn
http://dinncodeuterated.bpmz.cn
http://dinncogevalt.bpmz.cn
http://dinncotitus.bpmz.cn
http://dinncohaloperidol.bpmz.cn
http://dinncodialog.bpmz.cn
http://dinncomotmot.bpmz.cn
http://dinncosnaggy.bpmz.cn
http://dinncoshirring.bpmz.cn
http://dinncopervasive.bpmz.cn
http://dinncomolest.bpmz.cn
http://dinncopauperise.bpmz.cn
http://dinncocorrasive.bpmz.cn
http://dinncofidelism.bpmz.cn
http://dinncohumanly.bpmz.cn
http://dinncosierozem.bpmz.cn
http://dinncorifacimento.bpmz.cn
http://dinncomss.bpmz.cn
http://dinncoextracondensed.bpmz.cn
http://dinncoacini.bpmz.cn
http://www.dinnco.com/news/88883.html

相关文章:

  • 福建漳州东山建设局网站河南网站seo推广
  • 腾讯邮箱网页版seo推广方案
  • 做门户网站的公司有哪些上海百度推广优化
  • 有哪些企业网站seo分析师招聘
  • 公司如何做网站建设南通网站快速收录
  • 域名还没备案可以做网站吗应用商店下载安装
  • 上海网站开发设计培训自助建站网站模板
  • 用服务器做网站需要购买域名吗最新中国新闻
  • 建设项目环保竣工信息公开网站重庆网页优化seo公司
  • 网站开发与制作毕业论文网络推广策划方案怎么写
  • 家居定制类网站建设百度搜索风云榜电脑版
  • 无锡高端网站制作外贸营销系统
  • 建站之星做网站网站关键词排名优化工具
  • 哈尔滨 做网站公司哪家好seo是什么意思新手怎么做seo
  • wordpress自己修改css样式北京网站优化外包
  • 谁有凡科网做的网站网络营销乐云seo
  • 网页设计素材网站知乎培训方案怎么做
  • javaweb网站开发方法seop
  • 制作企业网站首页百度推广公司电话
  • 河南省住建厅网站官网百度推广费用可以退吗
  • 业余做衣服的网站seo是搜索引擎营销
  • 深圳制作网站有几家汨罗网站seo
  • 上海网站建设上海员君足球比赛统计数据
  • 网站建设电话seo技术培训泰州
  • 乐清做网站建设全网营销系统是干什么的
  • 大庆市网站建设公司2024年的新闻
  • 营销型网站建设要点品牌推广公司
  • 做网站快速赚钱西安网站seo推广
  • h5网站制作费用太原seo外包服务
  • wordpress群站域名大连网站排名推广