| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Language.TextAnalytics.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | public partial class MatchRecord |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the MatchRecord class. |
| | 20 | | /// </summary> |
| 8 | 21 | | public MatchRecord() |
| | 22 | | { |
| | 23 | | CustomInit(); |
| 8 | 24 | | } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Initializes a new instance of the MatchRecord class. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="wikipediaScore">(optional) If a well-known item with |
| | 30 | | /// Wikipedia link is recognized, a decimal number denoting the |
| | 31 | | /// confidence level of the Wikipedia info will be returned.</param> |
| | 32 | | /// <param name="entityTypeScore">(optional) If an entity type is |
| | 33 | | /// recognized, a decimal number denoting the confidence level of the |
| | 34 | | /// entity type will be returned.</param> |
| | 35 | | /// <param name="text">Entity text as appears in the request.</param> |
| | 36 | | /// <param name="offset">Start position (in Unicode characters) for the |
| | 37 | | /// entity match text.</param> |
| | 38 | | /// <param name="length">Length (in Unicode characters) for the entity |
| | 39 | | /// match text.</param> |
| 0 | 40 | | public MatchRecord(double? wikipediaScore = default(double?), double? entityTypeScore = default(double?), string |
| | 41 | | { |
| 0 | 42 | | WikipediaScore = wikipediaScore; |
| 0 | 43 | | EntityTypeScore = entityTypeScore; |
| 0 | 44 | | Text = text; |
| 0 | 45 | | Offset = offset; |
| 0 | 46 | | Length = length; |
| | 47 | | CustomInit(); |
| 0 | 48 | | } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// An initialization method that performs custom operations like setting defaults |
| | 52 | | /// </summary> |
| | 53 | | partial void CustomInit(); |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets or sets (optional) If a well-known item with Wikipedia link is |
| | 57 | | /// recognized, a decimal number denoting the confidence level of the |
| | 58 | | /// Wikipedia info will be returned. |
| | 59 | | /// </summary> |
| | 60 | | [JsonProperty(PropertyName = "wikipediaScore")] |
| 12 | 61 | | public double? WikipediaScore { get; set; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets (optional) If an entity type is recognized, a decimal |
| | 65 | | /// number denoting the confidence level of the entity type will be |
| | 66 | | /// returned. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "entityTypeScore")] |
| 8 | 69 | | public double? EntityTypeScore { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets entity text as appears in the request. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "text")] |
| 12 | 75 | | public string Text { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets start position (in Unicode characters) for the entity |
| | 79 | | /// match text. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "offset")] |
| 0 | 82 | | public int? Offset { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets length (in Unicode characters) for the entity match |
| | 86 | | /// text. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "length")] |
| 0 | 89 | | public int? Length { get; set; } |
| | 90 | |
|
| | 91 | | } |
| | 92 | | } |