4

中国語の製品名のリストがあります。これらを英語に翻訳したいのですが、Google AJAX言語APIを試しましたが、翻訳がうまくいかないようです。誰かが私にアドバイスをくれたり、より良い選択を教えてくれたら素晴らしいと思います。
ありがとうございました。

4

2 に答える 2

3

ええと、グーグルは確かに素晴らしい翻訳サービスです、しかしあなたが信頼できる翻訳を探しているならあなたはおそらく人間に行く必要があるでしょう-機械翻訳はせいぜい大ざっぱかもしれません。myGengoには機械翻訳を容易にするAPIがあります。あなたの質問は「python」でタグ付けされているので、以下にいくつかのサンプルコードを投げましたが、必要に応じて、より広範なウォークスルーを取得できます。

すばらしいのは、人間による翻訳が完了するのを待っている間に機械翻訳を取得できることです。そのため、間に何かが必要な場合は、高くなくて乾燥していません。;)

まず、Python用のmygengoAPIライブラリをインストールします。

pip install mygengo

次に、次のような翻訳をリクエストします。

# -*- coding: utf-8 -*-
from mygengo import MyGengo

gengo = MyGengo(
    public_key = 'your_mygengo_api_key',
    private_key = 'your_mygengo_private_key',
    sandbox = False, # possibly False, depending on your dev needs
)

translation = gengo.postTranslationJob(job = {
    'type': 'text', # REQUIRED. Type to translate, you'll probably always put 'text' here (for now ;)
    'slug': 'Translating Chinese to English with the myGengo API', # REQUIRED. For storing on the myGengo side
    'body_src': '我們今天要去那裏嗎', # REQUIRED. The text you're translating. ;P
    'lc_src': 'zh', # REQUIRED. source_language_code (see getServiceLanguages() for a list of codes)  
    'lc_tgt': 'en', # REQUIRED. target_language_code (see getServiceLanguages() for a list of codes)
    'tier': 'standard', # REQUIRED. tier type ("machine", "standard", "pro", or "ultra")
})

# This will print out a machine translation; for your human translation, you can
# poll and check often, or set up a URL for it to post the results to.
print translation['response']['job']['body_tgt']
于 2011-06-01T01:33:45.150 に答える
2

Googleはおそらく最高のウェブベースの自動翻訳サービスの1つだと思います。

于 2010-10-20T15:18:29.157 に答える