Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

topic sample
languages
java
products
azure
cognitive services

Language REST API samples

These samples are quickstarts that show how to use various Language APIs, such as Bing Spell Check and Text Analytics.

Prerequisites

  • Create an Azure resource for the service you'd like to try, for example a Bing Spell Check resource.
  • Add your key and endpoint from your resource to your environment variables with the variable names suggested in the sample.
  • Copy/paste the .java file into your project or text editor.
  • For Text Analytics an entire Java project is available for download.
  • Include the JSON library into a lib folder.

Running the samples

  • Run Text Analytics in your IDE

  • Build/run Bing Spell Check from the command line with these commands:

    javac BingSpellCheck.java -cp .;lib\* -encoding UTF-8
    java -cp .;lib\* BingSpellCheck

Resources

Bing Spell Check: Documentation, API

Text Analytics: Documentation, API