-
-
Notifications
You must be signed in to change notification settings - Fork 633
Expand file tree
/
Copy pathEntityAnalysisOptions.cs
More file actions
32 lines (28 loc) · 922 Bytes
/
EntityAnalysisOptions.cs
File metadata and controls
32 lines (28 loc) · 922 Bytes
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
namespace BotSharp.Abstraction.Entity.Models;
public class EntityAnalysisOptions
{
/// <summary>
/// Token data providers
/// </summary>
[JsonPropertyName("data_providers")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IEnumerable<string>? DataProviders { get; set; }
/// <summary>
/// Maximum n-gram size
/// </summary>
[JsonPropertyName("max_ngram")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? MaxNgram { get; set; }
/// <summary>
/// Cutoff score: from 0 to 1
/// </summary>
[JsonPropertyName("cutoff")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Cutoff { get; set; }
/// <summary>
/// Top k
/// </summary>
[JsonPropertyName("top_k")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? TopK { get; set; }
}