Skip to content

Commit 34fd074

Browse files
committed
feat(natural-language-understanding-v1): metadata as a dictionary and comments updated
1 parent 97a432e commit 34fd074

File tree

3 files changed

+9
-35
lines changed

3 files changed

+9
-35
lines changed

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/ClassificationsOptions.cs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2021.
2+
* (C) Copyright IBM Corp. 2022.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,15 +21,17 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
2121
{
2222
/// <summary>
2323
/// Returns text classifications for the content.
24-
///
25-
/// Supported languages: English only.
2624
/// </summary>
2725
public class ClassificationsOptions
2826
{
2927
/// <summary>
3028
/// Enter a [custom
3129
/// model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
32-
/// ID of the classification model to be used.
30+
/// ID of the classifications model to be used.
31+
///
32+
/// You can analyze tone by using a language-specific model ID. See [Tone analytics
33+
/// (Classifications)](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-tone_analytics)
34+
/// for more information.
3335
/// </summary>
3436
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)]
3537
public string Model { get; set; }

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/Features.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2019, 2021.
2+
* (C) Copyright IBM Corp. 2022.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
1515
*
1616
*/
1717

18+
using System.Collections.Generic;
1819
using Newtonsoft.Json;
1920

2021
namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
@@ -26,8 +27,6 @@ public class Features
2627
{
2728
/// <summary>
2829
/// Returns text classifications for the content.
29-
///
30-
/// Supported languages: English only.
3130
/// </summary>
3231
[JsonProperty("classifications", NullValueHandling = NullValueHandling.Ignore)]
3332
public ClassificationsOptions Classifications { get; set; }
@@ -71,7 +70,7 @@ public class Features
7170
/// and publication date. Supports URL and HTML input types only.
7271
/// </summary>
7372
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
74-
public object Metadata { get; set; }
73+
public Dictionary<string, object> Metadata { get; set; }
7574
/// <summary>
7675
/// Recognizes when two entities are related and identifies the type of relation. For example, an `awardedTo`
7776
/// relation might connect the entities "Nobel Prize" and "Albert Einstein". For more information, see [Relation

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/MetadataOptions.cs

-27
This file was deleted.

0 commit comments

Comments
 (0)