-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DetectedLanguage.cs
39 lines (33 loc) · 1.38 KB
/
DetectedLanguage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.AI.Translation.Text
{
/// <summary> An object describing the detected language. </summary>
public partial class DetectedLanguage
{
/// <summary> Initializes a new instance of DetectedLanguage. </summary>
/// <param name="language"> A string representing the code of the detected language. </param>
/// <param name="score">
/// A float value indicating the confidence in the result.
/// The score is between zero and one and a low score indicates a low confidence.
/// </param>
/// <exception cref="ArgumentNullException"> <paramref name="language"/> is null. </exception>
internal DetectedLanguage(string language, float score)
{
Argument.AssertNotNull(language, nameof(language));
Language = language;
Score = score;
}
/// <summary> A string representing the code of the detected language. </summary>
public string Language { get; }
/// <summary>
/// A float value indicating the confidence in the result.
/// The score is between zero and one and a low score indicates a low confidence.
/// </summary>
public float Score { get; }
}
}