| | 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 | | /// Text analytics positive-negative sentiment analysis, scored as a |
| | 20 | | /// floating point value in a range of zero to 1. |
| | 21 | | /// <see |
| | 22 | | /// href="https://docs.microsoft.com/azure/search/cognitive-search-skill-sentiment" |
| | 23 | | /// /> |
| | 24 | | /// </summary> |
| | 25 | | [Newtonsoft.Json.JsonObject("#Microsoft.Skills.Text.SentimentSkill")] |
| | 26 | | public partial class SentimentSkill : Skill |
| | 27 | | { |
| | 28 | | /// <summary> |
| | 29 | | /// Initializes a new instance of the SentimentSkill class. |
| | 30 | | /// </summary> |
| 8 | 31 | | public SentimentSkill() |
| | 32 | | { |
| | 33 | | CustomInit(); |
| 8 | 34 | | } |
| | 35 | |
|
| | 36 | | /// <summary> |
| | 37 | | /// Initializes a new instance of the SentimentSkill class. |
| | 38 | | /// </summary> |
| | 39 | | /// <param name="inputs">Inputs of the skills could be a column in the |
| | 40 | | /// source data set, or the output of an upstream skill.</param> |
| | 41 | | /// <param name="outputs">The output of a skill is either a field in a |
| | 42 | | /// search index, or a value that can be consumed as an input by |
| | 43 | | /// another skill.</param> |
| | 44 | | /// <param name="name">The name of the skill which uniquely identifies |
| | 45 | | /// it within the skillset. A skill with no name defined will be given |
| | 46 | | /// a default name of its 1-based index in the skills array, prefixed |
| | 47 | | /// with the character '#'.</param> |
| | 48 | | /// <param name="description">The description of the skill which |
| | 49 | | /// describes the inputs, outputs, and usage of the skill.</param> |
| | 50 | | /// <param name="context">Represents the level at which operations take |
| | 51 | | /// place, such as the document root or document content (for example, |
| | 52 | | /// /document or /document/content). The default is /document.</param> |
| | 53 | | /// <param name="defaultLanguageCode">A value indicating which language |
| | 54 | | /// code to use. Default is en. Possible values include: 'da', 'nl', |
| | 55 | | /// 'en', 'fi', 'fr', 'de', 'el', 'it', 'no', 'pl', 'pt-PT', 'ru', |
| | 56 | | /// 'es', 'sv', 'tr'</param> |
| | 57 | | public SentimentSkill(IList<InputFieldMappingEntry> inputs, IList<OutputFieldMappingEntry> outputs, string name |
| 8 | 58 | | : base(inputs, outputs, name, description, context) |
| | 59 | | { |
| 8 | 60 | | DefaultLanguageCode = defaultLanguageCode; |
| | 61 | | CustomInit(); |
| 8 | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// An initialization method that performs custom operations like setting defaults |
| | 66 | | /// </summary> |
| | 67 | | partial void CustomInit(); |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets a value indicating which language code to use. Default |
| | 71 | | /// is en. Possible values include: 'da', 'nl', 'en', 'fi', 'fr', 'de', |
| | 72 | | /// 'el', 'it', 'no', 'pl', 'pt-PT', 'ru', 'es', 'sv', 'tr' |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "defaultLanguageCode")] |
| 46 | 75 | | public SentimentSkillLanguage? DefaultLanguageCode { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Validate the object. |
| | 79 | | /// </summary> |
| | 80 | | /// <exception cref="Rest.ValidationException"> |
| | 81 | | /// Thrown if validation fails |
| | 82 | | /// </exception> |
| | 83 | | public override void Validate() |
| | 84 | | { |
| 8 | 85 | | base.Validate(); |
| 8 | 86 | | } |
| | 87 | | } |
| | 88 | | } |