Google translate提供了以下信息:
Will the text I send to the Cloud Translation API, the results, or other information about the request itself, be stored on Google servers? If so, how long and where is the information kept?
When you send text to Cloud Translation API, we must store that text for a short per
import java.util.ArrayList;
import com.google.api.translate.Language;
import com.google.api.translate.Translator;
public class Translation {
public static void main(String[] args) {
// Translate a single English String to French
Translator translator = new Trans
我正在为我的应用程序实现google translator similator
how can implemented some idea about this app forward some similar source url or related google api please forward advance thanks
screenshot of this app
http://www.freeimagehosting.net/uploads/73620ad386.png
input:
from any language <-----trans
如何解码这个错误?我使用Google API来翻译使用Python的列表:
from googletrans import Translator
import json
#intentional conversion
translator=Translator()
z=[]
translations=translator.translate(['
ik ben goed','guten tag','das ist ein junge'], dest='en')
possible_json_string = str(tr
我在堆栈溢出中看到了类似的问题,但我想更具体地说明这一点:使用google translate的整个数据集
translator = Translator()
df_en = df.copy()
translations = {}
for column in df.columns:
#translator = Translator()
unique_elements = df[column].unique() # Getting unique elements of the column
for element in unique_elements:
如何在layout.phtml或ZendFramework2中获得局部值(即:'en‘或'en_US’、'de‘等)或视图?
我的本地设置与完全相同
<?php
namespace FileManager;
use Zend\Mvc\ModuleRouteListener;
class Module
{
public function onBootstrap($e)
{
$translator = $e->getApplication()->getServiceManager()->get('trans
我试图在一个translator.default中使用Controller服务,但是我试图通过trans方法翻译的任何消息都会返回未翻译的键。
/**
* @Route("/testT")
*/
public function testTAction(Request $req)
{
$translator = $this->get('translator.default');
$translated = $translator->trans('Hello from the other side');
die
我使用了gem,并试图在代码中创建一个方法(trans)。
require 'yandex-translator'
translator = Yandex::Translator.new(api_key)
def trans(text)
a = translator.translate text, to: "ru"
return a
end
puts trans("stack")
当我运行代码时,我会得到以下错误:
'trans': undefined local variable or method `transl
我是调查微软翻译文本API。我了解到它有两种类型的翻译器模型,更新的深层神经网络模型DNN和传统的统计机器翻译( SMT )。
我还找到了下面的说明,
Microsoft Translator supports 60 languages for text translation through the Microsoft Translator API.
然而,我无法找到DNN模型所涵盖的可能语言。DNN模型涵盖60种语言吗?请告诉我。