diff --git a/DEVELOPER.md b/DEVELOPER.md index 54afffa..dfa4aa0 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -58,7 +58,7 @@ Optional parameters for the `docker run` execution are: - For testing a single example file instead of all the example files. To alter the behavior of the pre-configured Docker environment, you can see the Dockerfile source and entry-point -script [here](https://git.basistech.net/raas/rapid-development-tools/tree/master/binding-dockerfiles). +script [here](https://github.com/RosetteTextAnalytics/rapid-development-tools/tree/master/binding-dockerfiles). ### Documentation Generation The existing README for documentation generation is [here](docs/README.md). @@ -68,7 +68,7 @@ The next time the API documentation is touched, please refresh the README and mi There's an old [Docker README](examples/docker) in the examples directory that might be a candidate for removal. ### Building A Release -See the [instructions](https://git.basistech.net/raas/rapid-development-tools/tree/master/publish) +See the [instructions](https://github.com/RosetteTextAnalytics/rapid-development-tools/tree/master/publish) ### TODOs - Inconsistent references with `rosette_api` and `rosette-api` diff --git a/README.md b/README.md index 2ce08ef..bc34f47 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ - Babel Street Logo + Babel Street Logo diff --git a/examples/record_similarity.py b/examples/record_similarity.py index 0ef1ea7..a2c1fe2 100644 --- a/examples/record_similarity.py +++ b/examples/record_similarity.py @@ -31,6 +31,18 @@ def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'): "dob2": { "type": "rni_date", "weight": 0.1 + }, + "jobTitle": { + "type": "rni_string", + "weight": 0.2 + }, + "age": { + "type": "rni_number", + "weight": 0.4 + }, + "isRetired": { + "type": "rni_boolean", + "weight": 0.05 } } properties = { @@ -52,7 +64,8 @@ def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'): "dob2": { "date": "04161993", "format": "MMddyyyy" - } + }, + "jobTitle": "software engineer" }, { "dob": { @@ -60,7 +73,9 @@ def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'): }, "primaryName": { "text": "Evan R" - } + }, + "age": 47, + "isRetired": False } ], "right": [ @@ -71,7 +86,9 @@ def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'): "primaryName": { "text": "Seth R", "language": "eng" - } + }, + "jobTitle": "manager", + "isRetired": True }, { "primaryName": "Ivan R", @@ -84,7 +101,9 @@ def run(key, alt_url='https://analytics.babelstreet.com/rest/v1/'): }, "dob2": { "date": "1993/04/16" - } + }, + "age": 72, + "isRetired": True } ] } diff --git a/rosette/api.py b/rosette/api.py index 734b4d4..9dadf15 100644 --- a/rosette/api.py +++ b/rosette/api.py @@ -24,7 +24,6 @@ import sys import os import re -import warnings import requests import platform @@ -46,8 +45,6 @@ else: _GZIP_SIGNATURE = str(_GZIP_BYTEARRAY) -warnings.simplefilter('always') - class _ReturnObject(object):