Skip to content

Commit 1921923

Browse files
authored
Merge pull request #111 from rosette-api/WS-3053-replace-rosette-com
WS_3053: replace rosette.com
2 parents 8650e31 + 97bf901 commit 1921923

2 files changed

Lines changed: 3 additions & 6 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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
1616
""" Run the example """
17-
categories_url_data = "https://rosette.com/about"
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)