Skip to content

Commit abe61d2

Browse files
authored
Merge pull request #1009 from watson-developer-cloud/stt-patch
Patch changes for Discovery and Speech to Text
2 parents 6134419 + 07aa994 commit abe61d2

File tree

31 files changed

+195
-117
lines changed

31 files changed

+195
-117
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 6.9.2
2+
current_version = 6.9.3
33
commit = True
44
message = docs: Update version numbers from {current_version} -> {new_version}
55

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ All the services:
6060
<dependency>
6161
<groupId>com.ibm.watson.developer_cloud</groupId>
6262
<artifactId>java-sdk</artifactId>
63-
<version>6.9.2</version>
63+
<version>6.9.3</version>
6464
</dependency>
6565
```
6666

@@ -70,7 +70,7 @@ Only Discovery:
7070
<dependency>
7171
<groupId>com.ibm.watson.developer_cloud</groupId>
7272
<artifactId>discovery</artifactId>
73-
<version>6.9.2</version>
73+
<version>6.9.3</version>
7474
</dependency>
7575
```
7676

@@ -79,13 +79,13 @@ Only Discovery:
7979
All the services:
8080

8181
```gradle
82-
'com.ibm.watson.developer_cloud:java-sdk:6.9.2'
82+
'com.ibm.watson.developer_cloud:java-sdk:6.9.3'
8383
```
8484

8585
Only Assistant:
8686

8787
```gradle
88-
'com.ibm.watson.developer_cloud:assistant:6.9.2'
88+
'com.ibm.watson.developer_cloud:assistant:6.9.3'
8989
```
9090

9191
##### Development snapshots
@@ -108,7 +108,7 @@ And then reference the snapshot version on your app module gradle
108108
Only Speech to Text:
109109

110110
```gradle
111-
'com.ibm.watson.developer_cloud:speech-to-text:6.9.3-SNAPSHOT'
111+
'com.ibm.watson.developer_cloud:speech-to-text:6.9.4-SNAPSHOT'
112112
```
113113

114114
##### JAR
@@ -347,7 +347,7 @@ Gradle:
347347

348348
```sh
349349
cd java-sdk
350-
gradle jar # build jar file (build/libs/watson-developer-cloud-6.9.2.jar)
350+
gradle jar # build jar file (build/libs/watson-developer-cloud-6.9.3.jar)
351351
gradle test # run tests
352352
gradle check # performs quality checks on source files and generates reports
353353
gradle testReport # run tests and generate the aggregated test report (build/reports/allTests)
@@ -400,4 +400,4 @@ or [Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-watson).
400400
[ibm-cloud-onboarding]: http://console.bluemix.net/registration?target=/developer/watson&cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Java
401401

402402

403-
[jar]: https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-6.9.2/java-sdk-6.9.2-jar-with-dependencies.jar
403+
[jar]: https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-6.9.3/java-sdk-6.9.3-jar-with-dependencies.jar

assistant/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ This service is currently in **private beta** and requires access to use. To lea
1010
<dependency>
1111
<groupId>com.ibm.watson.developer_cloud</groupId>
1212
<artifactId>assistant</artifactId>
13-
<version>6.9.2</version>
13+
<version>6.9.3</version>
1414
</dependency>
1515
```
1616

1717
##### Gradle
1818
```gradle
19-
'com.ibm.watson.developer_cloud:assistant:6.9.2'
19+
'com.ibm.watson.developer_cloud:assistant:6.9.3'
2020
```
2121

2222
## Usage

conversation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Conversation will be removed in the next major release. Please migrate to Assist
1010
<dependency>
1111
<groupId>com.ibm.watson.developer_cloud</groupId>
1212
<artifactId>conversation</artifactId>
13-
<version>6.9.2</version>
13+
<version>6.9.3</version>
1414
</dependency>
1515
```
1616

1717
##### Gradle
1818
```gradle
19-
'com.ibm.watson.developer_cloud:conversation:6.9.2'
19+
'com.ibm.watson.developer_cloud:conversation:6.9.3'
2020
```
2121

2222
## Usage

discovery/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson.developer_cloud</groupId>
99
<artifactId>discovery</artifactId>
10-
<version>6.9.2</version>
10+
<version>6.9.3</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:discovery:6.9.2'
16+
'com.ibm.watson.developer_cloud:discovery:6.9.3'
1717
```
1818

1919
## Usage
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5+
* the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
package com.ibm.watson.developer_cloud.discovery.v1.model;
14+
15+
import com.ibm.watson.developer_cloud.service.model.GenericModel;
16+
17+
/**
18+
* An object specifiying the concepts enrichment and related parameters.
19+
*/
20+
public class NluEnrichmentConcepts extends GenericModel {
21+
22+
private Long limit;
23+
24+
/**
25+
* Gets the limit.
26+
*
27+
* The maximum number of concepts enrichments to extact from each instance of the specified field.
28+
*
29+
* @return the limit
30+
*/
31+
public Long getLimit() {
32+
return limit;
33+
}
34+
35+
/**
36+
* Sets the limit.
37+
*
38+
* @param limit the new limit
39+
*/
40+
public void setLimit(final long limit) {
41+
this.limit = limit;
42+
}
43+
}

discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/NluEnrichmentEntities.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class NluEnrichmentEntities extends GenericModel {
2626
private Boolean mentions;
2727
@SerializedName("mention_types")
2828
private Boolean mentionTypes;
29-
@SerializedName("sentence_location")
30-
private Boolean sentenceLocation;
29+
@SerializedName("sentence_locations")
30+
private Boolean sentenceLocations;
3131
private String model;
3232

3333
/**
@@ -39,7 +39,7 @@ public static class Builder {
3939
private Long limit;
4040
private Boolean mentions;
4141
private Boolean mentionTypes;
42-
private Boolean sentenceLocation;
42+
private Boolean sentenceLocations;
4343
private String model;
4444

4545
private Builder(NluEnrichmentEntities nluEnrichmentEntities) {
@@ -48,7 +48,7 @@ private Builder(NluEnrichmentEntities nluEnrichmentEntities) {
4848
limit = nluEnrichmentEntities.limit;
4949
mentions = nluEnrichmentEntities.mentions;
5050
mentionTypes = nluEnrichmentEntities.mentionTypes;
51-
sentenceLocation = nluEnrichmentEntities.sentenceLocation;
51+
sentenceLocations = nluEnrichmentEntities.sentenceLocations;
5252
model = nluEnrichmentEntities.model;
5353
}
5454

@@ -123,13 +123,13 @@ public Builder mentionTypes(Boolean mentionTypes) {
123123
}
124124

125125
/**
126-
* Set the sentenceLocation.
126+
* Set the sentenceLocations.
127127
*
128-
* @param sentenceLocation the sentenceLocation
128+
* @param sentenceLocations the sentenceLocations
129129
* @return the NluEnrichmentEntities builder
130130
*/
131-
public Builder sentenceLocation(Boolean sentenceLocation) {
132-
this.sentenceLocation = sentenceLocation;
131+
public Builder sentenceLocations(Boolean sentenceLocations) {
132+
this.sentenceLocations = sentenceLocations;
133133
return this;
134134
}
135135

@@ -151,7 +151,7 @@ private NluEnrichmentEntities(Builder builder) {
151151
limit = builder.limit;
152152
mentions = builder.mentions;
153153
mentionTypes = builder.mentionTypes;
154-
sentenceLocation = builder.sentenceLocation;
154+
sentenceLocations = builder.sentenceLocations;
155155
model = builder.model;
156156
}
157157

@@ -220,15 +220,15 @@ public Boolean mentionTypes() {
220220
}
221221

222222
/**
223-
* Gets the sentenceLocation.
223+
* Gets the sentenceLocations.
224224
*
225225
* When `true`, a list of sentence locations for each instance of each identified entity is recorded. The default is
226226
* `false`.
227227
*
228-
* @return the sentenceLocation
228+
* @return the sentenceLocations
229229
*/
230-
public Boolean sentenceLocation() {
231-
return sentenceLocation;
230+
public Boolean sentenceLocations() {
231+
return sentenceLocations;
232232
}
233233

234234
/**

discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/NluEnrichmentFeatures.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class NluEnrichmentFeatures extends GenericModel {
2828
@SerializedName("semantic_roles")
2929
private NluEnrichmentSemanticRoles semanticRoles;
3030
private NluEnrichmentRelations relations;
31+
private NluEnrichmentConcepts concepts;
3132

3233
/**
3334
* Builder.
@@ -40,6 +41,7 @@ public static class Builder {
4041
private NluEnrichmentCategories categories;
4142
private NluEnrichmentSemanticRoles semanticRoles;
4243
private NluEnrichmentRelations relations;
44+
private NluEnrichmentConcepts concepts;
4345

4446
private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) {
4547
keywords = nluEnrichmentFeatures.keywords;
@@ -49,6 +51,7 @@ private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) {
4951
categories = nluEnrichmentFeatures.categories;
5052
semanticRoles = nluEnrichmentFeatures.semanticRoles;
5153
relations = nluEnrichmentFeatures.relations;
54+
concepts = nluEnrichmentFeatures.concepts;
5255
}
5356

5457
/**
@@ -142,6 +145,17 @@ public Builder relations(NluEnrichmentRelations relations) {
142145
this.relations = relations;
143146
return this;
144147
}
148+
149+
/**
150+
* Set the concepts.
151+
*
152+
* @param concepts the concepts
153+
* @return the NluEnrichmentFeatures builder
154+
*/
155+
public Builder concepts(NluEnrichmentConcepts concepts) {
156+
this.concepts = concepts;
157+
return this;
158+
}
145159
}
146160

147161
private NluEnrichmentFeatures(Builder builder) {
@@ -152,6 +166,7 @@ private NluEnrichmentFeatures(Builder builder) {
152166
categories = builder.categories;
153167
semanticRoles = builder.semanticRoles;
154168
relations = builder.relations;
169+
concepts = builder.concepts;
155170
}
156171

157172
/**
@@ -239,4 +254,15 @@ public NluEnrichmentSemanticRoles semanticRoles() {
239254
public NluEnrichmentRelations relations() {
240255
return relations;
241256
}
257+
258+
/**
259+
* Gets the concepts.
260+
*
261+
* An object specifiying the concepts enrichment and related parameters.
262+
*
263+
* @return the concepts
264+
*/
265+
public NluEnrichmentConcepts concepts() {
266+
return concepts;
267+
}
242268
}

language-translator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Language Translator v3 is now available. The v2 Language Translator API will no
1010
<dependency>
1111
<groupId>com.ibm.watson.developer_cloud</groupId>
1212
<artifactId>language-translator</artifactId>
13-
<version>6.9.2</version>
13+
<version>6.9.3</version>
1414
</dependency>
1515
```
1616

1717
##### Gradle
1818
```gradle
19-
'com.ibm.watson.developer_cloud:language-translator:6.9.2'
19+
'com.ibm.watson.developer_cloud:language-translator:6.9.3'
2020
```
2121

2222
## Usage

natural-language-classifier/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson.developer_cloud</groupId>
99
<artifactId>natural-language-classifier</artifactId>
10-
<version>6.9.2</version>
10+
<version>6.9.3</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:natural-language-classifier:6.9.2'
16+
'com.ibm.watson.developer_cloud:natural-language-classifier:6.9.3'
1717
```
1818

1919
## Usage

natural-language-understanding/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson.developer_cloud</groupId>
99
<artifactId>natural-language-understanding</artifactId>
10-
<version>6.9.2</version>
10+
<version>6.9.3</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:natural-language-understanding:6.9.2'
16+
'com.ibm.watson.developer_cloud:natural-language-understanding:6.9.3'
1717
```
1818

1919
## Usage

personality-insights/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson.developer_cloud</groupId>
99
<artifactId>personality-insights</artifactId>
10-
<version>6.9.2</version>
10+
<version>6.9.3</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:personality-insights:6.9.2'
16+
'com.ibm.watson.developer_cloud:personality-insights:6.9.3'
1717
```
1818

1919
## Usage

speech-to-text/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<dependency>
88
<groupId>com.ibm.watson.developer_cloud</groupId>
99
<artifactId>speech-to-text</artifactId>
10-
<version>6.9.2</version>
10+
<version>6.9.3</version>
1111
</dependency>
1212
```
1313

1414
##### Gradle
1515
```gradle
16-
'com.ibm.watson.developer_cloud:speech-to-text:6.9.2'
16+
'com.ibm.watson.developer_cloud:speech-to-text:6.9.3'
1717
```
1818

1919
## Usage

0 commit comments

Comments
 (0)