Skip to content

Commit 503f412

Browse files
authored
Initial commit
1 parent c85f03e commit 503f412

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

java/Language/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
topic: sample
3+
languages:
4+
- java
5+
products:
6+
- azure
7+
- cognitive services
8+
---
9+
10+
# Language REST API samples
11+
12+
These samples are quickstarts that show how to use various Language APIs, such as Bing Spell Check and Text Analytics.
13+
14+
## Prerequisites
15+
16+
- Create an [Azure resource](https://portal.azure.com) for the service you'd like to try, for example a Bing Spell Check resource.
17+
- Add your key and endpoint from your resource to your environment variables with the variable names suggested in the sample.
18+
- Copy/paste the `.java` file into your project or text editor.
19+
- For Text Analytics an entire Java project is available for download.
20+
- Include the [JSON](https://github.com/stleary/JSON-java) library into a lib folder.
21+
22+
## Running the samples
23+
- Run Text Analytics in your IDE
24+
- Build/run Bing Spell Check from the command line with these commands: <br>
25+
26+
`javac BingSpellCheck.java -cp .;lib\* -encoding UTF-8` <br>
27+
`java -cp .;lib\* BingSpellCheck`
28+
29+
## Resources
30+
#### Bing Spell Check: [Documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-spell-check/overview), [API](https://dev.cognitive.microsoft.com/docs/services/5f7d486e04d2430193e1ca8f760cd7ed/operations/57855119bca1df1c647bc358)
31+
32+
#### Text Analytics: [Documentation](https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/index), [API](https://westus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-0-Preview-1/operations/Languages)

0 commit comments

Comments
 (0)