You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: discovery/v1-generated.ts
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4784,6 +4784,12 @@ namespace DiscoveryV1 {
4784
4784
[propName: string]: any;
4785
4785
}
4786
4786
4787
+
/** An object specifiying the concepts enrichment and related parameters. */
4788
+
exportinterfaceNluEnrichmentConcepts{
4789
+
/** The maximum number of concepts enrichments to extact from each instance of the specified field. */
4790
+
limit?: number;
4791
+
}
4792
+
4787
4793
/** An object specifying the emotion detection enrichment and related parameters. */
4788
4794
exportinterfaceNluEnrichmentEmotion{
4789
4795
/** When `true`, emotion detection is performed on the entire field. */
@@ -4805,7 +4811,7 @@ namespace DiscoveryV1 {
4805
4811
/** When `true`, the types of mentions for each idetifieid entity is recorded. The default is `false`. */
4806
4812
mention_types?: boolean;
4807
4813
/** 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;
4809
4815
/** 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`. */
4810
4816
model?: string;
4811
4817
}
@@ -4826,6 +4832,8 @@ namespace DiscoveryV1 {
4826
4832
semantic_roles?: NluEnrichmentSemanticRoles;
4827
4833
/** An object specifying the relations enrichment and related parameters. */
4828
4834
relations?: NluEnrichmentRelations;
4835
+
/** An object specifiying the concepts enrichment and related parameters. */
4836
+
concepts?: NluEnrichmentConcepts;
4829
4837
}
4830
4838
4831
4839
/** An object specifying the Keyword enrichment and related parameters. */
@@ -5207,13 +5215,13 @@ namespace DiscoveryV1 {
5207
5215
/** An object defining a single tokenizaion rule. */
5208
5216
exportinterfaceTokenDictRule{
5209
5217
/** The string to tokenize. */
5210
-
text?: string;
5218
+
text: string;
5211
5219
/** Array of tokens that the `text` field is split into when found. */
5212
-
tokens?: string[];
5220
+
tokens: string[];
5213
5221
/** Array of tokens that represent the content of the `text` field in an alternate character set. */
5214
5222
readings?: string[];
5215
5223
/** 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;
5217
5225
}
5218
5226
5219
5227
/** Object describing the current status of the tokenization dictionary. */
Copy file name to clipboardExpand all lines: lib/recognize-stream.ts
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ const QUERY_PARAMS_ALLOWED = [
43
43
'model',
44
44
'X-Watson-Learning-Opt-Out',
45
45
'watson-token',
46
+
'language_customization_id',
46
47
'customization_id',
47
48
'acoustic_customization_id'
48
49
];
@@ -111,7 +112,8 @@ class RecognizeStream extends Duplex {
111
112
* @param {Boolean} [options.objectMode=false] - alias for options.readableObjectMode
112
113
* @param {Number} [options.X-Watson-Learning-Opt-Out=false] - set to true to opt-out of allowing Watson to use this request to improve it's services
113
114
* @param {Boolean} [options.smart_formatting=false] - formats numeric values such as dates, times, currency, etc.
114
-
* @param {String} [options.customization_id] - Customization ID
115
+
* @param {String} [options.language_customization_id] - Language customization ID
116
+
* @param {String} [options.customization_id] - Customization ID (DEPRECATED)
115
117
* @param {String} [options.acoustic_customization_id] - Acoustic customization ID
116
118
* @param {IamTokenManagerV1} [options.token_manager] - Token manager for authenticating with IAM
117
119
* @param {string} [options.base_model_version] - The version of the specified base model that is to be used with recognition request or, for the **Create a session** method, with the new session.
@@ -201,8 +203,14 @@ class RecognizeStream extends Duplex {
/** The identifier of the model that is to be used for the recognition request. */
2753
2753
model?: RecognizeConstants.Model|string;
2754
2754
/** The customization ID (GUID) of a custom language model that is to be used with the recognition request. The base model of the specified custom language model must match the model specified with the `model` parameter. You must make the request with service credentials created for the instance of the service that owns the custom model. By default, no custom language model is used. See [Custom models](https://console.bluemix.net/docs/services/speech-to-text/input.html#custom). **Note:** Use this parameter instead of the deprecated `customization_id` parameter. */
/** The identifier of the model that is to be used for the recognition request. */
2847
2847
model?: CreateJobConstants.Model|string;
2848
2848
/** A URL to which callback notifications are to be sent. The URL must already be successfully white-listed by using the **Register a callback** method. You can include the same callback URL with any number of job creation requests. Omit the parameter to poll the service for job completion and results. Use the `user_token` parameter to specify a unique user-specified string with each job to differentiate the callback notifications for the jobs. */
0 commit comments