Skip to content

Commit 9e463ae

Browse files
author
Adam Soos
committed
WS-3053: update readme and use text for categories
1 parent 4b2fedc commit 9e463ae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="https://www.rosette.com"><img src="https://s3.amazonaws.com/styleguide.basistech.com/logos/rosette-logo.png" width="181" height="47" /></a>
1+
<a href="https://www.babelstreet.com/rosette"><img src="https://s3.amazonaws.com/styleguide.basistech.com/logos/rosette-logo.png" width="181" height="47" /></a>
22

33
---
44

@@ -12,8 +12,6 @@ comparing the similarity of names, categorizing and adding linguistic tags to te
1212

1313
## Rosette API Access
1414
- Rosette Cloud [Sign Up](https://developer.rosette.com/signup)
15-
- Rosette Enterprise [Evaluation](https://www.rosette.com/product-eval/)
16-
1715
## Quick Start
1816

1917
#### Maven

examples/src/main/java/com/basistech/rosette/examples/CategoriesExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ public static void main(String[] args) {
4242
}
4343

4444
private void run() throws IOException {
45-
String categoriesUrlData = "https://www.babelstreet.com/rosette";
45+
String categoriesTextData = "If you are a fan of the British television series Downton Abbey and you are planning to be in New York anytime before April 2nd, there is a perfect stop for you while in town.";
4646
HttpRosetteAPI rosetteApi = new HttpRosetteAPI.Builder()
4747
.key(getApiKeyFromSystemProperty())
4848
.url(getAltUrlFromSystemProperty())
4949
.build();
5050
//The api object creates an http client, but to provide your own:
5151
//api.httpClient(CloseableHttpClient)
5252
DocumentRequest<CategoriesOptions> request = DocumentRequest.<CategoriesOptions>builder()
53-
.contentUri(categoriesUrlData)
53+
.content(categoriesTextData)
5454
.build();
5555
CategoriesResponse response = rosetteApi.perform(CATEGORIES_SERVICE_PATH, request, CategoriesResponse.class);
5656
System.out.println(responseToJson(response));

0 commit comments

Comments
 (0)