Releases: watson-developer-cloud/java-sdk
v3.0.1
The SDK 3.0.1 introduced support for react (use rx()). Services can now be combined using react in a synchronous or asynchronous calls and calls more efficiently.
CHANGES
- New: The
User-Agentcan be customized - New: Services added:
- Visual Recognition v3
- Conversation v1-experimental
- Tone Analyzer v3
- New:
profanity_filteradded to Speech to Text - New: Introduce reactive API calls (use
rx()) - New: Added new voices to Speech to Text
- New:
getVoice()in Speech to Text and Text to Speech - New:
keyword_spottingin Speech to Text - New: AlchemyLanguage now provides
typedRelations()from Relationship Extraction - Fix: Error when running in Android and using
JDNI - Fix: Error when loading
ContentItemsfrom a file in Personality Insights - Fix: Conceptual search in Concept Insights now return the
user_fields - Fix:
Content-Typein Speech to text when usingflacfiles - Fix: Warning when calling Alchemy services regarding connections being leaked
- Fix: Added missing fields in AlchemyDataNews
- Fix: SSL certificate issues when running in Bluemix and using the IBM JDK
There were also important changes on how we test the services and lots of bug fixing. Here is the list with all the issues we close in this release
🔆🔆🔆
🔆🔆🔆
CONTRIBUTORS
This release was driven mainly by @max-vogler with some help from @GrapeBaBa. 🚀
java-sdk-3.0.0-RC1
Breaking Changes for v3.0
The version 3.0.0-RC1 is a major release focused on simplicity and consistency. Several breaking changes were introduced.
Synchronous vs Asynchronous
Before 3.0 all the API calls were synchronous
List<Dialog> dialogs = dialogService.getDialogs();
System.out.println(dialogs);Now to do synchronous call you need to add execute()
List<Dialog> dialogs = dialogService.getDialogs().execute();
System.out.println(dialogs);To do asynchronous calls you need to specify a callback
service.getDialogs().enqueue(new ServiceCallback<List<Dialog>>() {
@Override
public void onResponse(List<Dialog> response) {
System.out.println(response);
}
@Override
public void onFailure(Exception e) {
}}
);For more information, take a look at the CHANGELOG.
Migration
To migrate to 3.0 from a previous version, simply add .execute() to the old methods.
For example if you previously had
List<Dialog> dialogs = dialogService.getDialogs();
System.out.println(dialogs);Just add execute() on the end and your code will work exactly the same as before.
List<Dialog> dialogs = dialogService.getDialogs().execute();
System.out.println(dialogs);v2.10.0
CHANGES
@GrapeBaBa [java-sdk] Fix idea build and ignore idea .ipr file 768007a
@GrapeBaBa Merge branch 'master' of github.com:watson-developer-cloud/java-sdk e86d559
@GrapeBaBa [java-sdk] Refine some explicit small bad codes. 33b0f11
@germanattanasio Merge pull request #237 from watson-developer-cloud/2.10.0 … aa29192
@germanattanasio Merge branch 'master' of https://github.com/GrapeBaBa/java-sdk into G… … 557c177
@germanattanasio Merge branch 'GrapeBaBa-master' 8962c96
@germanattanasio merged pull requests 5c11dc6
@GrapeBaBa [Alchemy] Added set/get method for sentiment field #232. bec53ae
@GrapeBaBa Merge branch 'master' into master f66d84d
@germanattanasio Merge pull request #239 from GrapeBaBa/master … e1ab4b8
@tanmayb123 Update LanguageTranslation.java 76d6504
@tanmayb123 Create Language.java f433257
@tanmayb123 Update LanguageTranslationTest.java 5a60584
@tanmayb123 Update LanguageTranslationIT.java 5a927c2
@tanmayb123 Update Language.java 52b2830
@tanmayb123 Update LanguageTranslation.java 808adb4
@tanmayb123 Update Language.java 6229fb8
@tanmayb123 Update Language.java cb1f5b4
@tanmayb123 Update Language.java c42e68b
@tanmayb123 Update Language.java fe5689e
@GrapeBaBa [Language-translation] rename. d473507
@GrapeBaBa [Language-translation] rename. e3b00a5
@GrapeBaBa [Language-translation] fix issue #240. f97a1ca
@GrapeBaBa [Language-translation] cancel change import *. a9b10f2
@tanmayb123 Update Language.java 916c42e
@germanattanasio Merge pull request #244 from GrapeBaBa/master … 4871c0e
@germanattanasio Merge branch 'pr/241' 0c676db
@germanattanasio Merge changes and pull requests f658518
@germanattanasio Merge remote-tracking branch 'origin/master' … c52a0e1
@germanattanasio removed concept expansion service e649d0d
@GrapeBaBa [General-sdk] Unify file name and small polish. 7f1e620
@germanattanasio fixes #242 Closes the response stream. ad54e33
@germanattanasio Merge branch 'master' of git://github.com/GrapeBaBa/java-sdk into pr245 c026c3a
@germanattanasio Merge branch 'pr245' f14778d
@germanattanasio bump to 2.10.0 810f628
@germanattanasio [maven-release-plugin] prepare release java-sdk-2.10.0 70b51ef
@germanattanasio [maven-release-plugin] prepare for next development iteration 9d2da7d
🔆🔆🔆
CONTRIBUTORS
This release was driven mainly by @GrapeBaBa with some help from @tanmayb123. Two great ![]()
@GrapeBaBa Fixed AlchemyLanguage and Language Translation issues, helped other contributors write pull request and work on standardizing the code style. 🎈 🚀 💯
@tanmayb123 Fixed an AlchemyLanguage issue related to language detection and added enumeration to Language Translation
java-sdk-2.9.0
CHANGES
This release introduces getImageSceneText() in AlchemyVision and fixes issues related to json serializer/deserializer and WebSockets in Speech to Text.
@germanattanasio [ci skip] bump up version to 2.9.0 54fff5d
@germanattanasio Update encrypted file for travis to run the integration tests b9a7a6a
@germanattanasio [tone-analyzer] update integration tests 94e96cd
@germanattanasio [tone-analyzer] remove Tone Analyzer v1 ad98a3c
@germanattanasio bump up son and nv-websocket-client versions 3ed6081
@germanattanasio cleanup the code ea38e6c
@germanattanasio [alchemy] added emotion analysis #197 d8b8699
@germanattanasio [alchemy] Number format exception when there is no tag returned by the… 69b3bb3
@germanattanasio [alchemy] Remove unused imports 7d36a0e
@germanattanasio [dialog] Added integration test to validate #206 7b84a67
@germanattanasio [dialog] Added integration test to check that the updateProfile method… 5756e6e
@germanattanasio [speech-to-text] Fix IndexOutOfBounds when result Index is greater than… 503bbc9
@germanattanasio Added a gson singleton without pretty printing. #209 de48467
@germanattanasio [alchemy] Added date extraction, fixes #210 70693b4
@germanattanasio [concept-insights] Allow corpus documents to be listed specifying only… c95a6d8
@germanattanasio [dialog] Fix for getConversationData son not being parsed #211 28f7849
@germanattanasio [Alchemy] Serialize Boolean using yes or no to fix #214 c4b2c27
@l2fprod [alchemy-vision] deeper testing of the json c6b333c
@l2fprod [alchemy-vision] adding support for scene text issue #200 7a3ff03
@germanattanasio added issue and pull request templates 35d7353
@gjs29 Update version of SolrJ used in RR example 14f583e
@germanattanasio Added some test cases for various servcies 918386c
@gjs29 Remove Java 7 elements from RR client... 804ea6e
🔆🔆🔆
CONTRIBUTORS
@l2fprod Added support for getImageSceneText() in AlchemyVision.
java-sdk-2.8.0
CHANGES
This release introduced Tone Analyzer V3 and fixes a issue when using InputStream in Visual Recognition.
@eddiezane [alchemy-vision] Fix example in README.md 266a771
@germanattanasio Merge pull request #188 from eddiezane/dev … 6429c3f
@herchu [tone-analyzer] First version for v3 wrapper de7e64e
@germanattanasio Merge pull request #193 from herchu/dev … 2a96d6a
@germanattanasio [tone-analyzer] Add support for v3 38a8e02
@germanattanasio [code formatting] d480ea2
@germanattanasio merge unit test and integration test results af5c7c6
@germanattanasio switch back to cobertura 093ee3f
@germanattanasio switch back to use cobertura.xml 9b7d287
@germanattanasio Fixes #190 eeebb1e
@germanattanasio Update coverage badge 6ab0471
@germanattanasio exclude model classes 7dd7dd7
@germanattanasio [tone-analyzer] v3 updated 98a6274
@germanattanasio 2.8.0 ae51e46
![]()
![]()
![]()
CONTRIBUTORS
@eddiezane Fixed example in the README file
java-sdk-2.7.1
CHANGES
This release includes fixes for:
- [speech-to-text] do not disconnect on interim results with final = true #182
- [speech-to-text] UnknownHostException: Unable to resolve host "stream.watsonplatform.net" #176
- [language-translation] forced glossary, monolingual corpus or parallel corpus should be allowed #172
- Error: unknown tag (prallel_corpus_ct) #171
- Add X-Watson-Opt-Out to opt out integration tests #169
- [concept-insights] Corpus model doesn't support expiration date #168
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/InitialContext;#167
COMMITS
@g-may fix typo in IDHelper (accoundId --> accountId) c464f18
@germanattanasio Update README.md d237d92
@germanattanasio Updated websocket dependency 0dc3bbc
@germanattanasio Get the http string from the http InputStream 1893993
@germanattanasio Fixed #171 wrong query parameter 6e84e5a
@germanattanasio [concept-insights] Add expires_on and ttl_hours fields to the corpus … 05b1f69
@germanattanasio Added X-Watson-Learning-Opt-Out to prevent payload from being use to … 9417177
@germanattanasio [language-translation] Allow more than one file to be used when … 43e5e51
@germanattanasio Fix for java.naming.InitialContext that was preventing android users … 140bfa4
@germanattanasio Updated authorizations keys in travis f43770c
@germanattanasio [dialog] Deprecate the old method in favor of #177 a75fab5
@germanattanasio Close the input stream for JSON HTTP responses after we read the json. e5fce41
@germanattanasio [language-translation] Sleep for 3 seconds after creating a model to be … bbb6e9a
@germanattanasio Fix default headers replacing existing headers in WatsonService 137131d
@tanmayb123 tanmayb123 Create REReturnType.java cc27cb9
@germanattanasio #184 make sure it runs in java 1.6 46c1441
@germanattanasio [speech-to-text] Fix for WebSocket being disconnected during final … d74517e
@tanmayb123 tanmayb123 Update REReturnType.java eca25cc
@tanmayb123 tanmayb123 Update REReturnType.java 1e45a23
@tanmayb123 tanmayb123 Update RelationshipExtraction.java 73b1e0c
@tanmayb123 tanmayb123 Update RelationshipExtraction.java abd876a
@tanmayb123 tanmayb123 Update REReturnType.java c2cb059
@tanmayb123 tanmayb123 Update RelationshipExtraction.java 850d4c5
@tanmayb123 tanmayb123 Rename REReturnType.java to ReturnType.java 88b27b4
@tanmayb123 tanmayb123 Update RelationshipExtraction.java 81e80b5
@tanmayb123 tanmayb123 Update RelationshipExtraction.java cbb5fd5
@germanattanasio Merge pull request #185 from tanmayb123/dev … c321fd3
@germanattanasio [speech-to-text] Send close message to the WebSocket once we get the … 5902df2
@germanattanasio Merge branch 'dev' of github.com:watson-developer-cloud/java-sdk into… … 4d06966
@germanattanasio [maven-release-plugin] prepare release java-sdk-2.7.1 322cbd7
@germanattanasio [maven-release-plugin] prepare for next development iteration e2b4041
![]()
![]()
![]()
CONTRIBUTORS
@tanmayb123 Added support for returning JSON along with XML in Relationship Extraction
@g-may Fixed a misspelled word in Concept Insights
java-sdk-2.7.0
CHANGES
This release includes fixes for concepts not being serialized #163 and Dates not being deserialized correctly #149.
@g-may [concept-insights] fix getDocumentRelationScores description 0c68446
@germanattanasio Merge pull request #162 from g-may/patch-2 … 715dda2
@sreya92 Add support for jndi API key lookup 4af269d
@germanattanasio Merge pull request #164 from sreya92/master … 4b0093d
@germanattanasio [concept-insights] fix for concepts not being correctly serialized #163 6102075
@germanattanasio Added codecov d31e3cf
@germanattanasio [retrieve-and-rank] Update example dependencies 17d2de6
@germanattanasio Fix for Date formatting not including timezone #149 3af47d8
@germanattanasio Added test for 409 Conflict Exceptions b76e2cc
@germanattanasio [speech-to-text] integration test code cleanup 424640d
🐎 🐎 🐎
CONTRIBUTORS
@jgawor and @sreya92 for the changes to support JNDI API lookup
![]()
@g-may for reporting a bug in the Concept Insights service 💬
java-sdk-2.6.0
This release includes support for WebSockets(#15) and the fix for Wave files not including the size in the header (#81)
CHANGES
@germanattanasio [text-to-speech] Add a WaveUtils class to fix the .wav header #81 0d929b3
@germanattanasio [text-to-speech] write data size in input streams #81 520a779
@germanattanasio [text-to-speech] Added test for the fix to write the wave header #81 41de597
@germanattanasio [document-conversion] fix example cc5bc8d
@germanattanasio [speech-to-text] WebSockets support for speech to text 34d305e
@germanattanasio [speech-to-text] Added web socket example and code review for web … 61a9909
@germanattanasio [speech-to-text] Added Websocket example #15 211ac07
@germanattanasio [concept-expansion] Removed label requirement f87a849
@germanattanasio [speech-to-text] Added CountDownLatch to show interim results when … 2f795b5
@germanattanasio [concept-insights] fixed create-delete corpus integration test bb11bf5
java-sdk-2.5.0
CHANGES
@germanattanasio Update CONTRIBUTING.md 316f427
@PranavSathy [speech-to-text] Added timestamps and word confidences to STT 19fcc72
@germanattanasio [concept-expansion] Added support for v1-beta 07d9e0e
@germanattanasio [personality-insights] Switch from “double” to “Double” in Trait #151 c0274e5
@germanattanasio [visual-recognition] Added support for v2 which includes training … ba59e63
@germanattanasio Switch to use Double instead of double to distinguish between null and … 44eae39
@germanattanasio bump up dependencies ece7610
@germanattanasio [visual-recognition] fix debugger issue by checking the first … 9fd50b3
@germanattanasio [tradeoff-analytics] update Solution 2dcede1
@germanattanasio [tradeoff-analytics] Fix models by adding statusCause to the Solution … 54d032b
@germanattanasio [tradeoff-analytics] Updated javadoc f0bed5d
@germanattanasio [tradeoff-analytics] remove “final” from variables in the integration … 4cfd195
@germanattanasio [alchemy] Added javadoc to the AlchemyVision service 71d5d5f
@germanattanasio [text-to-speech] Improved javadoc 7e0d1b1
@germanattanasio [visual-recognition] test the classifier delete call 85ebaa3
@germanattanasio Added Javadoc to language translation, relationship extraction, … a958256
@germanattanasio [speech-to-text] Detect the audio format automatically based on the … e2fd23e
@germanattanasio GSON Singleton Javadoc documentation 5fcb46c
@germanattanasio update build.grade dependencies 95a12ac
@germanattanasio [concept-expansion] updated example and README.md 85d997a
java-sdk-2.3.0
CHANGES
- [TTS] Error when calling synthesize using Accept #124 ccbd62a
- [STT] Fix validation issue when calling recognize e042716
- [VR] Calling recognize with an InputStream #126 74e7ad0
- [DCS] Removes some duplicated code ac4fef6
- [DCS] Cleans up unit test df6bf3
- [DCS] Adds support for using custom configs 18807a
- [DCS] Cleans up imports 0b8ef46
- [RR] Use Strings to parse Solr cluster size in Retrieve and Rank cc4df3
- [DCS] Adds required version query param 36567f
- [DCS] Makes default version date a static value c8568b6
- [documentation] fix javadoc for alchemy language 8d6f445
- [STT] Improve error message when calling recognize #133 73806f0
- [STT] fix misspelled error 4e8d87c
- Use preemptive Basic auth when making request with SolrJ 6bd3b8
- Only run integration tests if is not a pull request db76f0a
- [ALCHEMY] Added missed confident string to the Author POJO 8e3c3a9
- [CI] Add constant to corpus c6e58aa
- [CI] Added ttl and expires_on fields to the document object 46cc6d0
- [CI] Added a constructor and build methods to the Part object 9e49685
- [DS] Update the dialog url to be GA 492755f
- [LT] Added test resources and a forced_glossary 0d4ce42
- [NLC] Added test resources and json api responses 76ddf72
- [PI] Added test resources and json api responses d0d49d7
- [LT] fixed create and delete models fa62ec0
- [PI] Added timestamp type adapter for contentItems fixed #132 199af58
- [DC] code review 403777f
- [DC] Update example to use version date bedbefe
- [STT] Removed WebSocket example until we add WebSocket support to the SDK b4618c8
- Removed
finalfrom examples ca7da4f - Moved resources to service specific folders 8c8ff52
- Updated examples in README.md ef11c2
- [RR] Ignore Ranker integration tests #140 52c665b