Skip to content

Commit 6d94823

Browse files
authored
Merge pull request #116 from rosette-api/WS-3314-update-key-header-and-urls
Ws 3314 update key header and urls
2 parents 7a44620 + 6f818d4 commit 6d94823

36 files changed

+340
-324
lines changed

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,46 @@
1-
<a href="https://www.babelstreet.com/rosette"><img src="https://charts.babelstreet.com/icon.png" width="47" height="60"/></a>
2-
# Rosette by Babel Street
1+
<a href="https://www.babelstreet.com/rosette">
2+
<picture>
3+
<source media="(prefers-color-scheme: light)" srcset="https://charts.babelstreet.com/icon-dark.png">
4+
<source media="(prefers-color-scheme: dark)" srcset="https://charts.babelstreet.com/icon-light.png">
5+
<img alt="Babel Street Logo" width="48" height="48">
6+
</picture>
7+
</a>
8+
9+
# Analytics by Babel Street
310

411
[![PyPI version](https://badge.fury.io/py/rosette-api.svg)](https://badge.fury.io/py/rosette-api)
512
[![Python Versions](https://img.shields.io/pypi/pyversions/rosette-api.svg?color=dark%20green&label=Python%20Versions)](https://img.shields.io/pypi/pyversions/rosette-api.svg?color=dark%20green&label=Python%20Versions)
613

7-
Rosette uses natural language processing, statistical modeling, and machine learning to analyze unstructured and semi-structured text across hundreds of language-script combinations, revealing valuable information and actionable data. Rosette provides endpoints for extracting entities and relationships, translating and comparing the similarity of names, categorizing and adding linguistic tags to text and more. Rosette Server is the on-premises installation of Rosette, with access to Rosette's functions as RESTful web service endpoints. This solves cloud security worries and allows customization (models/indexes) as needed for your business.
14+
Our product is a full text processing pipeline from data preparation to extracting the most relevant information and
15+
analysis utilizing precise, focused AI that has built-in human understanding. Text Analytics provides foundational
16+
linguistic analysis for identifying languages and relating words. The result is enriched and normalized text for
17+
high-speed search and processing without translation.
18+
19+
Text Analytics extracts events and entities — people, organizations, and places — from unstructured text and adds the
20+
structure of associating those entities into events that deliver only the necessary information for near real-time
21+
decision making. Accompanying tools shorten the process of training AI models to recognize domain-specific events.
22+
23+
The product delivers a multitude of ways to sharpen and expand search results. Semantic similarity expands search
24+
beyond keywords to words with the same meaning, even in other languages. Sentiment analysis and topic extraction help
25+
filter results to what’s relevant.
826

9-
## Rosette API Access
10-
- Rosette Cloud [Sign Up](https://developer.rosette.com/signup)
27+
## Analytics API Access
28+
- Analytics Cloud [Sign Up](https://developer.babelstreet.com/signup)
1129

1230
## Quick Start
1331

1432
#### Installation
1533
`pip install rosette_api`
1634

1735
#### Examples
18-
View small example programs for each Rosette endpoint
36+
View small example programs for each Analytics endpoint
1937
in the [examples](https://github.com/rosette-api/python/tree/develop/examples) directory.
2038

2139
#### Documentation & Support
2240
- [Binding API](https://rosette-api.github.io/python/)
23-
- [Rosette Platform API](https://docs.babelstreet.com/API/en/index-en.html)
41+
- [Analytics Platform API](https://docs.babelstreet.com/API/en/index-en.html)
2442
- [Binding Release Notes](https://github.com/rosette-api/python/wiki/Release-Notes)
25-
- [Rosette Platform Release Notes](https://babelstreet.my.site.com/support/s/article/Rosette-Cloud-Release-Notes)
43+
- [Analytics Platform Release Notes](https://docs.babelstreet.com/Release/en/rosette-cloud.html)
2644
- [Support](https://babelstreet.my.site.com/support/s/)
2745
- [Binding License: Apache 2.0](https://github.com/rosette-api/python/blob/develop/LICENSE.txt)
2846

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747

4848
# General information about the project.
4949
project = ''
50-
copyright = '2024, Basis Technology'
51-
author = 'Basis Technology'
50+
copyright = '2024, Babel Street'
51+
author = 'Babel Street'
5252

5353
# The version info for the project you're documenting, acts as replacement for
5454
# |version| and |release|, also used in various other places throughout the

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
Python Binding
88
==========================================
9-
This is the API documentation for the Rosette API Python Binding. For examples and usage, please refer to our `API Guide <http://developer.rosette.com/api-guide>`_.
9+
This is the API documentation for the Babel Street Analytics API Python Binding. For examples and usage, please refer to our `API Guide <http://developer.babelstreet.com/api-guide>`_.
1010

1111
.. toctree::
1212
:maxdepth: 2

examples/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
## Endpoint Examples
22

3-
Each example file demonstrates one of the capabilities of the Rosette Platform.
3+
Each example file demonstrates one of the capabilities of the Babel Street Analytics Platform.
44

55
Here are some methods for running the examples. Each example will also accept an optional `--url` parameter for
66
overriding the default URL.
77

8-
A note on prerequisites. Rosette API only supports TLS 1.2 so ensure your toolchain also supports it.
8+
A note on prerequisites. Analytics API only supports TLS 1.2 so ensure your toolchain also supports it.
99

1010
#### Virtualenv/Latest Release
1111
```
1212
git clone git@github.com:rosette-api/python.git
1313
cd python/examples
14-
virtualenv rosette_venv
15-
source rosette_venv/bin/activate
14+
python -m venv analytics_venv
15+
source analytics_venv/bin/activate
1616
pip install rosette_api
1717
python ping.py -k $API_KEY
1818
```
@@ -21,8 +21,8 @@ python ping.py -k $API_KEY
2121
```
2222
git clone git@github.com:rosette-api/python.git
2323
cd python
24-
virtualenv rosette_venv
25-
source rosette_venv/bin/activate
24+
python -m venv analytics_venv
25+
source analytics_venv/bin/activate
2626
python setup.py install
2727
cd examples
2828
python ping.py -k $API_KEY

examples/address_similarity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Example code to call Rosette API to get match score (similarity) of two addresses.
3+
Example code to call Analytics API to get match score (similarity) of two addresses.
44
"""
55

66
import argparse
@@ -10,7 +10,7 @@
1010
from rosette.api import API, AddressSimilarityParameters, RosetteException
1111

1212

13-
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
13+
def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'):
1414
""" Run the example """
1515
# Create an API instance
1616
api = API(user_key=key, service_url=alt_url)
@@ -29,9 +29,9 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
2929
PARSER = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
3030
description='Calls the ' +
3131
os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
32-
PARSER.add_argument('-k', '--key', help='Rosette API Key', required=True)
32+
PARSER.add_argument('-k', '--key', help='Analytics API Key', required=True)
3333
PARSER.add_argument('-u', '--url', help="Alternative API URL",
34-
default='https://api.rosette.com/rest/v1/')
34+
default='https://analytics.babelstreet.com/rest/v1/')
3535

3636
if __name__ == '__main__':
3737
ARGS = PARSER.parse_args()

examples/categories.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
"""
4-
Example code to call Rosette API to get the category of a document (at a given URL).
4+
Example code to call Analytics API to get the category of a document (at a given URL).
55
"""
66

77
import argparse
@@ -12,16 +12,16 @@
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='https://analytics.babelstreet.com/rest/v1/'):
1616
""" Run the example """
1717
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."
1818
# Create an API instance
1919
api = API(user_key=key, service_url=alt_url)
2020

2121
# Set selected API options
2222
# For more information on the functionality of these
23-
# and other available options, see Rosette Features & Functions
24-
# https://developer.rosette.com/features-and-functions#categorization
23+
# and other available options, see Analytics Features & Functions
24+
# https://developer.babelstreet.com/features-and-functions#categorization
2525

2626
# api.set_option('singleLabel', 'true')
2727
# api.set_option('scoreThreshold',- 0.20)
@@ -38,9 +38,9 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
3838
PARSER = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
3939
description='Calls the ' +
4040
os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
41-
PARSER.add_argument('-k', '--key', help='Rosette API Key', required=True)
41+
PARSER.add_argument('-k', '--key', help='Analytics API Key', required=True)
4242
PARSER.add_argument('-u', '--url', help="Alternative API URL",
43-
default='https://api.rosette.com/rest/v1/')
43+
default='https://analytics.babelstreet.com/rest/v1/')
4444

4545
if __name__ == '__main__':
4646
ARGS = PARSER.parse_args()

examples/entities.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Example code to call Rosette API to get entities from a piece of text.
3+
Example code to call Analytics API to get entities from a piece of text.
44
"""
55

66
import argparse
@@ -10,15 +10,15 @@
1010
from rosette.api import API, DocumentParameters, RosetteException
1111

1212

13-
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
13+
def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'):
1414
""" Run the example """
1515
# Create an API instance
1616
api = API(user_key=key, service_url=alt_url)
1717

1818
# Set selected API options.
1919
# For more information on the functionality of these
20-
# and other available options, see Rosette Features & Functions
21-
# https://developer.rosette.com/features-and-functions#entity-extraction-and-linking
20+
# and other available options, see Analytics Features & Functions
21+
# https://developer.babelstreet.com/features-and-functions#entity-extraction-and-linking
2222

2323
# api.set_option('calculateSalience','true')
2424
# api.set_option('linkEntities','false')
@@ -36,9 +36,9 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
3636
PARSER = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
3737
description='Calls the ' +
3838
os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
39-
PARSER.add_argument('-k', '--key', help='Rosette API Key', required=True)
39+
PARSER.add_argument('-k', '--key', help='Analytics API Key', required=True)
4040
PARSER.add_argument('-u', '--url', help="Alternative API URL",
41-
default='https://api.rosette.com/rest/v1/')
41+
default='https://analytics.babelstreet.com/rest/v1/')
4242

4343
if __name__ == '__main__':
4444
ARGS = PARSER.parse_args()

examples/events.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Example code to call Rosette API to get events from a piece of text.
3+
Example code to call Analytics API to get events from a piece of text.
44
"""
55

66
import argparse
@@ -10,7 +10,7 @@
1010
from rosette.api import API, DocumentParameters, RosetteException
1111

1212

13-
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
13+
def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'):
1414
""" Run the example """
1515
# Create an API instance
1616
api = API(user_key=key, service_url=alt_url)
@@ -27,9 +27,9 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
2727
PARSER = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
2828
description='Calls the ' +
2929
os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
30-
PARSER.add_argument('-k', '--key', help='Rosette API Key', required=True)
30+
PARSER.add_argument('-k', '--key', help='Analytics API Key', required=True)
3131
PARSER.add_argument('-u', '--url', help="Alternative API URL",
32-
default='https://api.rosette.com/rest/v1/')
32+
default='https://analytics.babelstreet.com/rest/v1/')
3333

3434
if __name__ == '__main__':
3535
ARGS = PARSER.parse_args()

examples/events_negation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Example code to call Rosette API to get events, based on a set negation option, from a piece of text.
3+
Example code to call Analytics API to get events, based on a set negation option, from a piece of text.
44
"""
55

66
import argparse
@@ -10,7 +10,7 @@
1010
from rosette.api import API, DocumentParameters, RosetteException
1111

1212

13-
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
13+
def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'):
1414
""" Run the example """
1515
# Create an API instance
1616
api = API(user_key=key, service_url=alt_url)
@@ -31,9 +31,9 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
3131
PARSER = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
3232
description='Calls the ' +
3333
os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
34-
PARSER.add_argument('-k', '--key', help='Rosette API Key', required=True)
34+
PARSER.add_argument('-k', '--key', help='Analytics API Key', required=True)
3535
PARSER.add_argument('-u', '--url', help="Alternative API URL",
36-
default='https://api.rosette.com/rest/v1/')
36+
default='https://analytics.babelstreet.com/rest/v1/')
3737

3838
if __name__ == '__main__':
3939
ARGS = PARSER.parse_args()

examples/info.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Example code to call Rosette API to get information such as version and build
3+
Example code to call Analytics API to get information such as version and build
44
"""
55

66
import argparse
@@ -10,7 +10,7 @@
1010
from rosette.api import API, RosetteException
1111

1212

13-
def run(key, alt_url='https://api.rosette.com/rest/v1/'):
13+
def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'):
1414
""" Run the example """
1515
# Create an API instance
1616
api = API(user_key=key, service_url=alt_url)
@@ -24,9 +24,9 @@ def run(key, alt_url='https://api.rosette.com/rest/v1/'):
2424
PARSER = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter,
2525
description='Calls the ' +
2626
os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
27-
PARSER.add_argument('-k', '--key', help='Rosette API Key', required=True)
27+
PARSER.add_argument('-k', '--key', help='Analytics API Key', required=True)
2828
PARSER.add_argument('-u', '--url', help="Alternative API URL",
29-
default='https://api.rosette.com/rest/v1/')
29+
default='https://analytics.babelstreet.com/rest/v1/')
3030

3131
if __name__ == '__main__':
3232
ARGS = PARSER.parse_args()

0 commit comments

Comments
 (0)