Skip to content

Commit d1fb9a9

Browse files
committed
fix(discovery): update mis-defined parameters to match the service
1 parent d64c06a commit d1fb9a9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

discovery/v1-generated.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4784,6 +4784,12 @@ namespace DiscoveryV1 {
47844784
[propName: string]: any;
47854785
}
47864786

4787+
/** An object specifiying the concepts enrichment and related parameters. */
4788+
export interface NluEnrichmentConcepts {
4789+
/** The maximum number of concepts enrichments to extact from each instance of the specified field. */
4790+
limit?: number;
4791+
}
4792+
47874793
/** An object specifying the emotion detection enrichment and related parameters. */
47884794
export interface NluEnrichmentEmotion {
47894795
/** When `true`, emotion detection is performed on the entire field. */
@@ -4805,7 +4811,7 @@ namespace DiscoveryV1 {
48054811
/** When `true`, the types of mentions for each idetifieid entity is recorded. The default is `false`. */
48064812
mention_types?: boolean;
48074813
/** When `true`, a list of sentence locations for each instance of each identified entity is recorded. The default is `false`. */
4808-
sentence_location?: boolean;
4814+
sentence_locations?: boolean;
48094815
/** The enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge Studio, the public model for use with Knowledge Graph `en-news`, or the default public model `alchemy`. */
48104816
model?: string;
48114817
}
@@ -4826,6 +4832,8 @@ namespace DiscoveryV1 {
48264832
semantic_roles?: NluEnrichmentSemanticRoles;
48274833
/** An object specifying the relations enrichment and related parameters. */
48284834
relations?: NluEnrichmentRelations;
4835+
/** An object specifiying the concepts enrichment and related parameters. */
4836+
concepts?: NluEnrichmentConcepts;
48294837
}
48304838

48314839
/** An object specifying the Keyword enrichment and related parameters. */
@@ -5207,13 +5215,13 @@ namespace DiscoveryV1 {
52075215
/** An object defining a single tokenizaion rule. */
52085216
export interface TokenDictRule {
52095217
/** The string to tokenize. */
5210-
text?: string;
5218+
text: string;
52115219
/** Array of tokens that the `text` field is split into when found. */
5212-
tokens?: string[];
5220+
tokens: string[];
52135221
/** Array of tokens that represent the content of the `text` field in an alternate character set. */
52145222
readings?: string[];
52155223
/** The part of speech that the `text` string belongs to. For example `noun`. Custom parts of speech can be specified. */
5216-
part_of_speech?: string;
5224+
part_of_speech: string;
52175225
}
52185226

52195227
/** Object describing the current status of the tokenization dictionary. */

0 commit comments

Comments
 (0)