Microsoft Translator API(从统计模型切换到神经模型)

时间:2017-10-27 09:33:31

标签: python-2.7 bing-api microsoft-translator bing-translator-api

我正在使用Microsoft Translator API(Python Scripts),我注意到它默认使用统计机器翻译模型。然而,神经网络翻译模型比统计模型更准确。如下图所示:

Picture of the two models from the Web App(Compare)

我想将神经网络模型与API结合使用。寻求关于如何从默认统计模型切换到神经模型的指导......

1 个答案:

答案 0 :(得分:1)

使用API​​,在您的调用中添加“category = generalnn”,告诉我们的服务器使用NN模型而不是SMT。如果应用程序请求NN获取不受支持的语言,它将自动返回SMT语言。