Skip to content

Commit

Permalink
Merge pull request #1009 from watson-developer-cloud/stt-patch
Browse files Browse the repository at this point in the history
Patch changes for  Discovery and Speech to Text
  • Loading branch information
lpatino10 authored Nov 19, 2018
2 parents 6134419 + 07aa994 commit abe61d2
Show file tree
Hide file tree
Showing 31 changed files with 195 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 6.9.2
current_version = 6.9.3
commit = True
message = docs: Update version numbers from {current_version} -> {new_version}

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ All the services:
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>java-sdk</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

Expand All @@ -70,7 +70,7 @@ Only Discovery:
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>discovery</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

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

```gradle
'com.ibm.watson.developer_cloud:java-sdk:6.9.2'
'com.ibm.watson.developer_cloud:java-sdk:6.9.3'
```

Only Assistant:

```gradle
'com.ibm.watson.developer_cloud:assistant:6.9.2'
'com.ibm.watson.developer_cloud:assistant:6.9.3'
```

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

```gradle
'com.ibm.watson.developer_cloud:speech-to-text:6.9.3-SNAPSHOT'
'com.ibm.watson.developer_cloud:speech-to-text:6.9.4-SNAPSHOT'
```

##### JAR
Expand Down Expand Up @@ -347,7 +347,7 @@ Gradle:

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


[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
[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
4 changes: 2 additions & 2 deletions assistant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ This service is currently in **private beta** and requires access to use. To lea
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>assistant</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:assistant:6.9.2'
'com.ibm.watson.developer_cloud:assistant:6.9.3'
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions conversation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Conversation will be removed in the next major release. Please migrate to Assist
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>conversation</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:conversation:6.9.2'
'com.ibm.watson.developer_cloud:conversation:6.9.3'
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions discovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>discovery</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:discovery:6.9.2'
'com.ibm.watson.developer_cloud:discovery:6.9.3'
```

## Usage
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.developer_cloud.discovery.v1.model;

import com.ibm.watson.developer_cloud.service.model.GenericModel;

/**
* An object specifiying the concepts enrichment and related parameters.
*/
public class NluEnrichmentConcepts extends GenericModel {

private Long limit;

/**
* Gets the limit.
*
* The maximum number of concepts enrichments to extact from each instance of the specified field.
*
* @return the limit
*/
public Long getLimit() {
return limit;
}

/**
* Sets the limit.
*
* @param limit the new limit
*/
public void setLimit(final long limit) {
this.limit = limit;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class NluEnrichmentEntities extends GenericModel {
private Boolean mentions;
@SerializedName("mention_types")
private Boolean mentionTypes;
@SerializedName("sentence_location")
private Boolean sentenceLocation;
@SerializedName("sentence_locations")
private Boolean sentenceLocations;
private String model;

/**
Expand All @@ -39,7 +39,7 @@ public static class Builder {
private Long limit;
private Boolean mentions;
private Boolean mentionTypes;
private Boolean sentenceLocation;
private Boolean sentenceLocations;
private String model;

private Builder(NluEnrichmentEntities nluEnrichmentEntities) {
Expand All @@ -48,7 +48,7 @@ private Builder(NluEnrichmentEntities nluEnrichmentEntities) {
limit = nluEnrichmentEntities.limit;
mentions = nluEnrichmentEntities.mentions;
mentionTypes = nluEnrichmentEntities.mentionTypes;
sentenceLocation = nluEnrichmentEntities.sentenceLocation;
sentenceLocations = nluEnrichmentEntities.sentenceLocations;
model = nluEnrichmentEntities.model;
}

Expand Down Expand Up @@ -123,13 +123,13 @@ public Builder mentionTypes(Boolean mentionTypes) {
}

/**
* Set the sentenceLocation.
* Set the sentenceLocations.
*
* @param sentenceLocation the sentenceLocation
* @param sentenceLocations the sentenceLocations
* @return the NluEnrichmentEntities builder
*/
public Builder sentenceLocation(Boolean sentenceLocation) {
this.sentenceLocation = sentenceLocation;
public Builder sentenceLocations(Boolean sentenceLocations) {
this.sentenceLocations = sentenceLocations;
return this;
}

Expand All @@ -151,7 +151,7 @@ private NluEnrichmentEntities(Builder builder) {
limit = builder.limit;
mentions = builder.mentions;
mentionTypes = builder.mentionTypes;
sentenceLocation = builder.sentenceLocation;
sentenceLocations = builder.sentenceLocations;
model = builder.model;
}

Expand Down Expand Up @@ -220,15 +220,15 @@ public Boolean mentionTypes() {
}

/**
* Gets the sentenceLocation.
* Gets the sentenceLocations.
*
* When `true`, a list of sentence locations for each instance of each identified entity is recorded. The default is
* `false`.
*
* @return the sentenceLocation
* @return the sentenceLocations
*/
public Boolean sentenceLocation() {
return sentenceLocation;
public Boolean sentenceLocations() {
return sentenceLocations;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class NluEnrichmentFeatures extends GenericModel {
@SerializedName("semantic_roles")
private NluEnrichmentSemanticRoles semanticRoles;
private NluEnrichmentRelations relations;
private NluEnrichmentConcepts concepts;

/**
* Builder.
Expand All @@ -40,6 +41,7 @@ public static class Builder {
private NluEnrichmentCategories categories;
private NluEnrichmentSemanticRoles semanticRoles;
private NluEnrichmentRelations relations;
private NluEnrichmentConcepts concepts;

private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) {
keywords = nluEnrichmentFeatures.keywords;
Expand All @@ -49,6 +51,7 @@ private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) {
categories = nluEnrichmentFeatures.categories;
semanticRoles = nluEnrichmentFeatures.semanticRoles;
relations = nluEnrichmentFeatures.relations;
concepts = nluEnrichmentFeatures.concepts;
}

/**
Expand Down Expand Up @@ -142,6 +145,17 @@ public Builder relations(NluEnrichmentRelations relations) {
this.relations = relations;
return this;
}

/**
* Set the concepts.
*
* @param concepts the concepts
* @return the NluEnrichmentFeatures builder
*/
public Builder concepts(NluEnrichmentConcepts concepts) {
this.concepts = concepts;
return this;
}
}

private NluEnrichmentFeatures(Builder builder) {
Expand All @@ -152,6 +166,7 @@ private NluEnrichmentFeatures(Builder builder) {
categories = builder.categories;
semanticRoles = builder.semanticRoles;
relations = builder.relations;
concepts = builder.concepts;
}

/**
Expand Down Expand Up @@ -239,4 +254,15 @@ public NluEnrichmentSemanticRoles semanticRoles() {
public NluEnrichmentRelations relations() {
return relations;
}

/**
* Gets the concepts.
*
* An object specifiying the concepts enrichment and related parameters.
*
* @return the concepts
*/
public NluEnrichmentConcepts concepts() {
return concepts;
}
}
4 changes: 2 additions & 2 deletions language-translator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Language Translator v3 is now available. The v2 Language Translator API will no
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>language-translator</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:language-translator:6.9.2'
'com.ibm.watson.developer_cloud:language-translator:6.9.3'
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions natural-language-classifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>natural-language-classifier</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:natural-language-classifier:6.9.2'
'com.ibm.watson.developer_cloud:natural-language-classifier:6.9.3'
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions natural-language-understanding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>natural-language-understanding</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:natural-language-understanding:6.9.2'
'com.ibm.watson.developer_cloud:natural-language-understanding:6.9.3'
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions personality-insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>personality-insights</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:personality-insights:6.9.2'
'com.ibm.watson.developer_cloud:personality-insights:6.9.3'
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions speech-to-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<dependency>
<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>speech-to-text</artifactId>
<version>6.9.2</version>
<version>6.9.3</version>
</dependency>
```

##### Gradle
```gradle
'com.ibm.watson.developer_cloud:speech-to-text:6.9.2'
'com.ibm.watson.developer_cloud:speech-to-text:6.9.3'
```

## Usage
Expand Down
Loading

0 comments on commit abe61d2

Please sign in to comment.