| topic | sample | ||
|---|---|---|---|
| languages |
|
||
| products |
|
These samples are quickstarts that show how to use various Language APIs, such as Bing Spell Check and Text Analytics.
- 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
.javafile 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.
-
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