-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
JSONModelFeature.cs
94 lines (85 loc) · 3.68 KB
/
JSONModelFeature.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
// <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.CognitiveServices.Language.LUIS.Authoring.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Exported Model - Phraselist Model Feature.
/// </summary>
public partial class JSONModelFeature
{
/// <summary>
/// Initializes a new instance of the JSONModelFeature class.
/// </summary>
public JSONModelFeature()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the JSONModelFeature class.
/// </summary>
/// <param name="activated">Indicates if the feature is
/// enabled.</param>
/// <param name="name">The Phraselist name.</param>
/// <param name="words">List of comma-separated phrases that represent
/// the Phraselist.</param>
/// <param name="mode">An interchangeable phrase list feature serves as
/// a list of synonyms for training. A non-exchangeable phrase list
/// serves as separate features for training. So, if your
/// non-interchangeable phrase list contains 5 phrases, they will be
/// mapped to 5 separate features. You can think of the
/// non-interchangeable phrase list as an additional bag of words to
/// add to LUIS existing vocabulary features. It is used as a lexicon
/// lookup feature where its value is 1 if the lexicon contains a given
/// word or 0 if it doesn’t. Default value is true.</param>
public JSONModelFeature(bool? activated = default(bool?), string name = default(string), string words = default(string), bool? mode = default(bool?))
{
Activated = activated;
Name = name;
Words = words;
Mode = mode;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets indicates if the feature is enabled.
/// </summary>
[JsonProperty(PropertyName = "activated")]
public bool? Activated { get; set; }
/// <summary>
/// Gets or sets the Phraselist name.
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or sets list of comma-separated phrases that represent the
/// Phraselist.
/// </summary>
[JsonProperty(PropertyName = "words")]
public string Words { get; set; }
/// <summary>
/// Gets or sets an interchangeable phrase list feature serves as a
/// list of synonyms for training. A non-exchangeable phrase list
/// serves as separate features for training. So, if your
/// non-interchangeable phrase list contains 5 phrases, they will be
/// mapped to 5 separate features. You can think of the
/// non-interchangeable phrase list as an additional bag of words to
/// add to LUIS existing vocabulary features. It is used as a lexicon
/// lookup feature where its value is 1 if the lexicon contains a given
/// word or 0 if it doesn’t. Default value is true.
/// </summary>
[JsonProperty(PropertyName = "mode")]
public bool? Mode { get; set; }
}
}