Skip to content

Commit 2960386

Browse files
author
Adam Soos
committed
WS_3053: update readme and change categories example to text
1 parent b774ec5 commit 2960386

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 2 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

@@ -13,7 +13,6 @@ comparing the similarity of names, categorizing and adding linguistic tags to te
1313

1414
## Rosette API Access
1515
- Rosette Cloud [Sign Up](https://developer.rosette.com/signup)
16-
- Rosette Enterprise [Evaluation](https://www.rosette.com/product-eval/)
1716

1817
## Quick Start
1918

examples/categories.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
from rosette.api import API, DocumentParameters, RosetteException
1313

1414

15-
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
15+
def run(key, alt_url='http://localhost:8181/rest/v1/'):
1616
""" Run the example """
17-
categories_url_data = "https://www.babelstreet.com/rosette/"
18-
url = categories_url_data
17+
categories_text_data = "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."
1918
# Create an API instance
2019
api = API(user_key=key, service_url=alt_url)
2120

@@ -29,8 +28,7 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
2928

3029
params = DocumentParameters()
3130

32-
# Use a URL to input data instead of a string
33-
params["contentUri"] = url
31+
params["content"] = categories_text_data
3432
try:
3533
return api.categories(params)
3634
except RosetteException as exception:

0 commit comments

Comments
 (0)