AITranslationTextModelFactory.DetectedLanguage(String, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of DetectedLanguage.
public static Azure.AI.Translation.Text.DetectedLanguage DetectedLanguage (string language = default, float confidence = 0);
static member DetectedLanguage : string * single -> Azure.AI.Translation.Text.DetectedLanguage
Public Shared Function DetectedLanguage (Optional language As String = Nothing, Optional confidence As Single = 0) As DetectedLanguage
Parameters
- language
- String
A string representing the code of the detected language.
- confidence
- Single
A float value indicating the confidence in the result. The score is between zero and one and a low score indicates a low confidence.
Returns
A new DetectedLanguage instance for mocking.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.