Azure认知服务翻译器检测语言已损坏

问题描述 投票:1回答:1

我想使用Azure翻译认知服务的“检测语言”端点,但是对我来说似乎很糟糕。我已通过以下正文向https://api.cognitive.microsofttranslator.com/detect?api-version=3.0发送了一个请求:

[
    {"Text":"aoishdioashdoiashdioa"}
]

响应为:

[
    {
        "language": "en",
        "score": 1.0,
        "isTranslationSupported": true,
        "isTransliterationSupported": false,
        "alternatives": [
            {
                "language": "de",
                "score": 1.0,
                "isTranslationSupported": true,
                "isTransliterationSupported": false
            },
            {
                "language": "fr",
                "score": 1.0,
                "isTranslationSupported": true,
                "isTransliterationSupported": false
            }
        ]
    }
]

我想知道如何通过糟糕的输入获得如此高的置信度得分1.0。有人知道我想念的东西吗?

azure cloud microsoft-cognitive translate azure-cognitive-services
1个回答
0
投票

有一个用于Microsoft-translator的神经系统,所以要解释为什么会出现这种情况并不容易。

但是,如果您坚持要说明,这可能是一个原因。当它是无效文本时,它将分析其内容。像您的文字一样,所有字母均为拉丁字母。并且在许多语言中,它们都包含这些字母,这就是为什么所有分数均为1.0的原因。

然后讨论为什么列出这些语言,因为并非所有语言都具有相同的字母,就像某些语言具有Ä䎞,假设它会分析这些字母的概率,然后获得最高概率的语言列表。] >

© www.soinside.com 2019 - 2024. All rights reserved.