-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
KeyPhraseExtractionSkill.cs
98 lines (91 loc) · 4.35 KB
/
KeyPhraseExtractionSkill.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// A skill that uses text analytics for key phrase extraction.
/// <see
/// href="https://docs.microsoft.com/azure/search/cognitive-search-skill-keyphrases"
/// />
/// </summary>
[Newtonsoft.Json.JsonObject("#Microsoft.Skills.Text.KeyPhraseExtractionSkill")]
public partial class KeyPhraseExtractionSkill : Skill
{
/// <summary>
/// Initializes a new instance of the KeyPhraseExtractionSkill class.
/// </summary>
public KeyPhraseExtractionSkill()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the KeyPhraseExtractionSkill class.
/// </summary>
/// <param name="inputs">Inputs of the skills could be a column in the
/// source data set, or the output of an upstream skill.</param>
/// <param name="outputs">The output of a skill is either a field in a
/// search index, or a value that can be consumed as an input by
/// another skill.</param>
/// <param name="name">The name of the skill which uniquely identifies
/// it within the skillset. A skill with no name defined will be given
/// a default name of its 1-based index in the skills array, prefixed
/// with the character '#'.</param>
/// <param name="description">The description of the skill which
/// describes the inputs, outputs, and usage of the skill.</param>
/// <param name="context">Represents the level at which operations take
/// place, such as the document root or document content (for example,
/// /document or /document/content). The default is /document.</param>
/// <param name="defaultLanguageCode">A value indicating which language
/// code to use. Default is en. Possible values include: 'da', 'nl',
/// 'en', 'fi', 'fr', 'de', 'it', 'ja', 'ko', 'no', 'pl', 'pt-PT',
/// 'pt-BR', 'ru', 'es', 'sv'</param>
/// <param name="maxKeyPhraseCount">A number indicating how many key
/// phrases to return. If absent, all identified key phrases will be
/// returned.</param>
public KeyPhraseExtractionSkill(IList<InputFieldMappingEntry> inputs, IList<OutputFieldMappingEntry> outputs, string name = default(string), string description = default(string), string context = default(string), KeyPhraseExtractionSkillLanguage? defaultLanguageCode = default(KeyPhraseExtractionSkillLanguage?), int? maxKeyPhraseCount = default(int?))
: base(inputs, outputs, name, description, context)
{
DefaultLanguageCode = defaultLanguageCode;
MaxKeyPhraseCount = maxKeyPhraseCount;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets a value indicating which language code to use. Default
/// is en. Possible values include: 'da', 'nl', 'en', 'fi', 'fr', 'de',
/// 'it', 'ja', 'ko', 'no', 'pl', 'pt-PT', 'pt-BR', 'ru', 'es', 'sv'
/// </summary>
[JsonProperty(PropertyName = "defaultLanguageCode")]
public KeyPhraseExtractionSkillLanguage? DefaultLanguageCode { get; set; }
/// <summary>
/// Gets or sets a number indicating how many key phrases to return. If
/// absent, all identified key phrases will be returned.
/// </summary>
[JsonProperty(PropertyName = "maxKeyPhraseCount")]
public int? MaxKeyPhraseCount { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public override void Validate()
{
base.Validate();
}
}
}