Skip to content

Commit 8e14346

Browse files
refactor(nlu): parameter reordering
1 parent 3ab8c76 commit 8e14346

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

natural-language-understanding/v1.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,11 +1720,6 @@ namespace NaturalLanguageUnderstandingV1 {
17201720

17211721
/** Analysis features and options. */
17221722
export interface Features {
1723-
/** Returns a five-level taxonomy of the content. The top three categories are returned.
1724-
*
1725-
* Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
1726-
*/
1727-
categories?: CategoriesOptions;
17281723
/** Returns text classifications for the content.
17291724
*
17301725
* Supported languages: English only.
@@ -1784,6 +1779,11 @@ namespace NaturalLanguageUnderstandingV1 {
17841779
* Supported languages: English only.
17851780
*/
17861781
summarization?: SummarizationOptions;
1782+
/** Returns a five-level taxonomy of the content. The top three categories are returned.
1783+
*
1784+
* Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
1785+
*/
1786+
categories?: CategoriesOptions;
17871787
/** Returns tokens and sentences from the input text. */
17881788
syntax?: SyntaxOptions;
17891789
}

test/unit/natural-language-understanding.v1.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,6 @@ describe('NaturalLanguageUnderstandingV1', () => {
148148
describe('positive tests', () => {
149149
// Request models needed by this operation.
150150

151-
// CategoriesOptions
152-
const categoriesOptionsModel = {
153-
explanation: true,
154-
limit: 10,
155-
model: 'testString',
156-
};
157-
158151
// ClassificationsOptions
159152
const classificationsOptionsModel = {
160153
model: 'testString',
@@ -211,6 +204,13 @@ describe('NaturalLanguageUnderstandingV1', () => {
211204
limit: 10,
212205
};
213206

207+
// CategoriesOptions
208+
const categoriesOptionsModel = {
209+
explanation: true,
210+
limit: 10,
211+
model: 'testString',
212+
};
213+
214214
// SyntaxOptionsTokens
215215
const syntaxOptionsTokensModel = {
216216
lemma: true,
@@ -225,7 +225,6 @@ describe('NaturalLanguageUnderstandingV1', () => {
225225

226226
// Features
227227
const featuresModel = {
228-
categories: categoriesOptionsModel,
229228
classifications: classificationsOptionsModel,
230229
concepts: conceptsOptionsModel,
231230
emotion: emotionOptionsModel,
@@ -236,6 +235,7 @@ describe('NaturalLanguageUnderstandingV1', () => {
236235
semantic_roles: semanticRolesOptionsModel,
237236
sentiment: sentimentOptionsModel,
238237
summarization: summarizationOptionsModel,
238+
categories: categoriesOptionsModel,
239239
syntax: syntaxOptionsModel,
240240
};
241241

0 commit comments

Comments
 (0)