Skip to content

Commit 5d2dd6d

Browse files
feat(natural-language-understanding): generated code
chore(natural-language-understanding): manual changes chore(natural-language-understanding): manual changes
1 parent d088954 commit 5d2dd6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+81
-104
lines changed

natural-language-understanding/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Installation
44

55
##### Maven
6+
67
```xml
78
<dependency>
89
<groupId>com.ibm.watson</groupId>
@@ -12,12 +13,14 @@
1213
```
1314

1415
##### Gradle
16+
1517
```gradle
1618
'com.ibm.watson:natural-language-understanding:8.2.1'
1719
```
1820

1921
## Usage
20-
Use [Natural Language Understanding](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-about)
22+
23+
Use [Natural Language Understanding](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-about)
2124
to analyze various features of text content at scale. Provide text, raw HTML, or a public URL, and IBM Watson Natural
2225
Language Understanding will give you results for the features you request. The service cleans HTML content before
2326
analysis by default, so the results can ignore most advertisements and other unwanted content.

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/NaturalLanguageUnderstanding.java

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -36,19 +36,18 @@
3636
* analysis by default, so the results can ignore most advertisements and other unwanted content.
3737
*
3838
* You can create [custom
39-
* models]
40-
* (https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
41-
* with Watson Knowledge Studio to detect custom entities, relations, and categories in Natural Language Understanding.
39+
* models](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
40+
* with Watson Knowledge Studio to detect custom entities and relations in Natural Language Understanding.
4241
*
4342
* @version v1
44-
* @see <a href="https://cloud.ibm.com/docs/services/natural-language-understanding/">Natural Language Understanding</a>
43+
* @see <a href="https://cloud.ibm.com/docs/natural-language-understanding/">Natural Language Understanding</a>
4544
*/
4645
public class NaturalLanguageUnderstanding extends BaseService {
4746

4847
private static final String DEFAULT_SERVICE_NAME = "natural_language_understanding";
4948

5049
private static final String DEFAULT_SERVICE_URL
51-
= "https://gateway.watsonplatform.net/natural-language-understanding/api";
50+
= "https://gateway.watsonplatform.net/natural-language-understanding/api";
5251

5352
private String versionDate;
5453

@@ -120,9 +119,7 @@ public NaturalLanguageUnderstanding(String versionDate, String serviceName, Auth
120119
*
121120
* If a language for the input text is not specified with the `language` parameter, the service [automatically detects
122121
* the
123-
* language]
124-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
125-
* ?topic=natural-language-understanding-detectable-languages).
122+
* language](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-detectable-languages).
126123
*
127124
* @param analyzeOptions the {@link AnalyzeOptions} containing the options for the call
128125
* @return a {@link ServiceCall} with a response type of {@link AnalysisResults}
@@ -179,9 +176,7 @@ public ServiceCall<AnalysisResults> analyze(AnalyzeOptions analyzeOptions) {
179176
* List models.
180177
*
181178
* Lists Watson Knowledge Studio [custom entities and relations
182-
* models]
183-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
184-
* ?topic=natural-language-understanding-customizing)
179+
* models](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
185180
* that are deployed to your Natural Language Understanding service.
186181
*
187182
* @param listModelsOptions the {@link ListModelsOptions} containing the options for the call
@@ -209,9 +204,7 @@ public ServiceCall<ListModelsResults> listModels(ListModelsOptions listModelsOpt
209204
* List models.
210205
*
211206
* Lists Watson Knowledge Studio [custom entities and relations
212-
* models]
213-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
214-
* ?topic=natural-language-understanding-customizing)
207+
* models](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
215208
* that are deployed to your Natural Language Understanding service.
216209
*
217210
* @return a {@link ServiceCall} with a response type of {@link ListModelsResults}

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/AnalysisResults.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/AnalysisResultsMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/AnalysisResultsUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/AnalyzeOptions.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2017, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -265,9 +265,7 @@ public String url() {
265265
* Gets the clean.
266266
*
267267
* Set this to `false` to disable webpage cleaning. To learn more about webpage cleaning, see the [Analyzing
268-
* webpages]
269-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
270-
* ?topic=natural-language-understanding-analyzing-webpages)
268+
* webpages](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages)
271269
* documentation.
272270
*
273271
* @return the clean
@@ -280,9 +278,7 @@ public Boolean clean() {
280278
* Gets the xpath.
281279
*
282280
* An [XPath
283-
* query]
284-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
285-
* ?topic=natural-language-understanding-analyzing-webpages#xpath)
281+
* query](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages#xpath)
286282
* to perform on `html` or `url` input. Results of the query will be appended to the cleaned webpage text before it is
287283
* analyzed. To analyze only the results of the XPath query, set the `clean` parameter to `false`.
288284
*
@@ -319,9 +315,7 @@ public Boolean returnAnalyzedText() {
319315
*
320316
* ISO 639-1 code that specifies the language of your text. This overrides automatic language detection. Language
321317
* support differs depending on the features you include in your analysis. See [Language
322-
* support]
323-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
324-
* ?topic=natural-language-understanding-language-support)
318+
* support](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-language-support)
325319
* for more information.
326320
*
327321
* @return the language

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/Author.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/CategoriesOptions.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -134,14 +134,17 @@ public Long limit() {
134134
* Gets the model.
135135
*
136136
* Enter a [custom
137-
* model]
138-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
139-
* ?topic=natural-language-understanding-customizing)
137+
* model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing)
140138
* ID to override the standard categories model.
141139
*
140+
* The custom categories experimental feature will be retired on 19 December 2019. On that date, deployed custom
141+
* categories models will no longer be accessible in Natural Language Understanding. The feature will be removed from
142+
* Knowledge Studio on an earlier date. Custom categories models will no longer be accessible in Knowledge Studio on
143+
* 17 December 2019.
144+
*
142145
* @return the model
143-
* @deprecated the model parameter is no longer supported by the Natural Language Understanding service and will
144-
* be removed in the next major release
146+
* @deprecated the model parameter is no longer supported by the Natural Language Understanding
147+
* service and will be removed in the next major release
145148
*/
146149
public String model() {
147150
return model;

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/CategoriesRelevantText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/model/CategoriesResult.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -28,9 +28,7 @@ public class CategoriesResult extends GenericModel {
2828
*
2929
* The path to the category through the 5-level taxonomy hierarchy. For the complete list of categories, see the
3030
* [Categories
31-
* hierarchy]
32-
* (https://cloud.ibm.com/docs/services/natural-language-understanding
33-
* ?topic=natural-language-understanding-categories#categories-hierarchy)
31+
* hierarchy](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-categories#categories-hierarchy)
3432
* documentation.
3533
*
3634
* @return the label

0 commit comments

Comments
 (0)