How to use Azure Bing SpellCheck in Java -Create your own HTTP request -Use Azure Java SDK There are two ways, but it is a memo on how to use the SDK. It took me a long time to get there.
Maven it's here. I couldn't find this unexpectedly. https://mvnrepository.com/artifact/com.microsoft.azure.cognitiveservices/azure-cognitiveservices-spellcheck/1.0.2
Sample it's here. https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/blob/master/Language/BingSpellCheck/src/main/java/com/microsoft/azure/cognitiveservices/language/spellcheck/samples/BingSpellCheckSample.java
I was thinking of reducing the number of API calls by acquiring the JSON of the HTTP response as it is and saving it in a file and using it as a cache, but in the original SDK, the method to acquire the response as it is is implemented. Looks like it's not. That would be possible if the source code was changed.
Recommended Posts