| | 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.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A skill that uses text analytics for key phrase extraction. |
| | 20 | | /// <see |
| | 21 | | /// href="https://docs.microsoft.com/azure/search/cognitive-search-skill-keyphrases" |
| | 22 | | /// /> |
| | 23 | | /// </summary> |
| | 24 | | [Newtonsoft.Json.JsonObject("#Microsoft.Skills.Text.KeyPhraseExtractionSkill")] |
| | 25 | | public partial class KeyPhraseExtractionSkill : Skill |
| | 26 | | { |
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the KeyPhraseExtractionSkill class. |
| | 29 | | /// </summary> |
| 10 | 30 | | public KeyPhraseExtractionSkill() |
| | 31 | | { |
| | 32 | | CustomInit(); |
| 10 | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> |
| | 36 | | /// Initializes a new instance of the KeyPhraseExtractionSkill class. |
| | 37 | | /// </summary> |
| | 38 | | /// <param name="inputs">Inputs of the skills could be a column in the |
| | 39 | | /// source data set, or the output of an upstream skill.</param> |
| | 40 | | /// <param name="outputs">The output of a skill is either a field in a |
| | 41 | | /// search index, or a value that can be consumed as an input by |
| | 42 | | /// another skill.</param> |
| | 43 | | /// <param name="name">The name of the skill which uniquely identifies |
| | 44 | | /// it within the skillset. A skill with no name defined will be given |
| | 45 | | /// a default name of its 1-based index in the skills array, prefixed |
| | 46 | | /// with the character '#'.</param> |
| | 47 | | /// <param name="description">The description of the skill which |
| | 48 | | /// describes the inputs, outputs, and usage of the skill.</param> |
| | 49 | | /// <param name="context">Represents the level at which operations take |
| | 50 | | /// place, such as the document root or document content (for example, |
| | 51 | | /// /document or /document/content). The default is /document.</param> |
| | 52 | | /// <param name="defaultLanguageCode">A value indicating which language |
| | 53 | | /// code to use. Default is en. Possible values include: 'da', 'nl', |
| | 54 | | /// 'en', 'fi', 'fr', 'de', 'it', 'ja', 'ko', 'no', 'pl', 'pt-PT', |
| | 55 | | /// 'pt-BR', 'ru', 'es', 'sv'</param> |
| | 56 | | /// <param name="maxKeyPhraseCount">A number indicating how many key |
| | 57 | | /// phrases to return. If absent, all identified key phrases will be |
| | 58 | | /// returned.</param> |
| | 59 | | public KeyPhraseExtractionSkill(IList<InputFieldMappingEntry> inputs, IList<OutputFieldMappingEntry> outputs, st |
| 10 | 60 | | : base(inputs, outputs, name, description, context) |
| | 61 | | { |
| 10 | 62 | | DefaultLanguageCode = defaultLanguageCode; |
| 10 | 63 | | MaxKeyPhraseCount = maxKeyPhraseCount; |
| | 64 | | CustomInit(); |
| 10 | 65 | | } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// An initialization method that performs custom operations like setting defaults |
| | 69 | | /// </summary> |
| | 70 | | partial void CustomInit(); |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets or sets a value indicating which language code to use. Default |
| | 74 | | /// is en. Possible values include: 'da', 'nl', 'en', 'fi', 'fr', 'de', |
| | 75 | | /// 'it', 'ja', 'ko', 'no', 'pl', 'pt-PT', 'pt-BR', 'ru', 'es', 'sv' |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "defaultLanguageCode")] |
| 58 | 78 | | public KeyPhraseExtractionSkillLanguage? DefaultLanguageCode { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets a number indicating how many key phrases to return. If |
| | 82 | | /// absent, all identified key phrases will be returned. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "maxKeyPhraseCount")] |
| 50 | 85 | | public int? MaxKeyPhraseCount { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Validate the object. |
| | 89 | | /// </summary> |
| | 90 | | /// <exception cref="Rest.ValidationException"> |
| | 91 | | /// Thrown if validation fails |
| | 92 | | /// </exception> |
| | 93 | | public override void Validate() |
| | 94 | | { |
| 10 | 95 | | base.Validate(); |
| 10 | 96 | | } |
| | 97 | | } |
| | 98 | | } |