Skip to content

Commit 97220df

Browse files
committed
feat(Natural Language Understanding): Updated data models for KeywordsResult, CategoriesOptions and CustomModel
1 parent 1771a6d commit 97220df

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

Scripts/Services/NaturalLanguageUnderstanding/v1/DataModels.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ public class EntitiesResult
131131
[fsObject]
132132
public class KeywordsResult
133133
{
134+
/// <summary>
135+
/// Number of times the keyword appears in the analyzed text
136+
/// </summary>
137+
public int count { get; set; }
134138
/// <summary>
135139
/// Relevance score from 0 to 1. Higher values indicate greater relevance
136140
/// </summary>
@@ -478,6 +482,22 @@ public class CustomModel
478482
/// Model description
479483
/// </summary>
480484
public string description { get; set; }
485+
/// <summary>
486+
/// ID of the Watson Knowledge Studio workspace that deployed this model to Natural Language Understanding
487+
/// </summary>
488+
public string workspace_id { get; set; }
489+
/// <summary>
490+
/// The model version, if it was manually provided in Watson Knowledge Studio
491+
/// </summary>
492+
public string version { get; set; }
493+
/// <summary>
494+
/// The description of the version, if it was manually provided in Watson Knowledge Studio
495+
/// </summary>
496+
public string version_description { get; set; }
497+
/// <summary>
498+
/// A dateTime indicating when the model was created
499+
/// </summary>
500+
public DateTime created { get; set; }
481501
}
482502

483503
[fsObject]
@@ -822,7 +842,14 @@ public override fsResult TrySerialize(object instance, out fsData serialized, Ty
822842
}
823843

824844
[fsObject]
825-
public class CategoriesOptions { }
845+
public class CategoriesOptions
846+
{
847+
/// <summary>
848+
/// Returns a five-level taxonomy of the content. The top three categories are returned.
849+
/// Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
850+
/// </summary>
851+
public int? limit { get; set; }
852+
}
826853

827854
#region Version
828855
/// <summary>

0 commit comments

Comments
 (0)