| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | public partial class EntityRecord |
| | 19 | | { |
| | 20 | | /// <summary> |
| | 21 | | /// Initializes a new instance of the EntityRecord class. |
| | 22 | | /// </summary> |
| 8 | 23 | | public EntityRecord() |
| | 24 | | { |
| | 25 | | CustomInit(); |
| 8 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the EntityRecord class. |
| | 30 | | /// </summary> |
| | 31 | | /// <param name="name">Entity formal name.</param> |
| | 32 | | /// <param name="matches">List of instances this entity appears in the |
| | 33 | | /// text.</param> |
| | 34 | | /// <param name="wikipediaLanguage">Wikipedia language for which the |
| | 35 | | /// WikipediaId and WikipediaUrl refers to.</param> |
| | 36 | | /// <param name="wikipediaId">Wikipedia unique identifier of the |
| | 37 | | /// recognized entity.</param> |
| | 38 | | /// <param name="wikipediaUrl">URL for the entity's Wikipedia |
| | 39 | | /// page.</param> |
| | 40 | | /// <param name="bingId">Bing unique identifier of the recognized |
| | 41 | | /// entity. Use in conjunction with the Bing Entity Search API to fetch |
| | 42 | | /// additional relevant information.</param> |
| | 43 | | /// <param name="type">Entity type from Named Entity Recognition |
| | 44 | | /// model</param> |
| | 45 | | /// <param name="subType">Entity sub type from Named Entity Recognition |
| | 46 | | /// model</param> |
| 0 | 47 | | public EntityRecord(string name = default(string), IList<MatchRecord> matches = default(IList<MatchRecord>), str |
| | 48 | | { |
| 0 | 49 | | Name = name; |
| 0 | 50 | | Matches = matches; |
| 0 | 51 | | WikipediaLanguage = wikipediaLanguage; |
| 0 | 52 | | WikipediaId = wikipediaId; |
| 0 | 53 | | WikipediaUrl = wikipediaUrl; |
| 0 | 54 | | BingId = bingId; |
| 0 | 55 | | Type = type; |
| 0 | 56 | | SubType = subType; |
| | 57 | | CustomInit(); |
| 0 | 58 | | } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// An initialization method that performs custom operations like setting defaults |
| | 62 | | /// </summary> |
| | 63 | | partial void CustomInit(); |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets or sets entity formal name. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "name")] |
| 12 | 69 | | public string Name { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets list of instances this entity appears in the text. |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "matches")] |
| 28 | 75 | | public IList<MatchRecord> Matches { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets wikipedia language for which the WikipediaId and |
| | 79 | | /// WikipediaUrl refers to. |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "wikipediaLanguage")] |
| 0 | 82 | | public string WikipediaLanguage { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets wikipedia unique identifier of the recognized entity. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "wikipediaId")] |
| 0 | 88 | | public string WikipediaId { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets URL for the entity's Wikipedia page. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "wikipediaUrl")] |
| 0 | 94 | | public string WikipediaUrl { get; private set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets bing unique identifier of the recognized entity. Use |
| | 98 | | /// in conjunction with the Bing Entity Search API to fetch additional |
| | 99 | | /// relevant information. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "bingId")] |
| 12 | 102 | | public string BingId { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets entity type from Named Entity Recognition model |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "type")] |
| 0 | 108 | | public string Type { get; set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// Gets or sets entity sub type from Named Entity Recognition model |
| | 112 | | /// </summary> |
| | 113 | | [JsonProperty(PropertyName = "subType")] |
| 0 | 114 | | public string SubType { get; set; } |
| | 115 | |
|
| | 116 | | } |
| | 117 | | } |