-
Notifications
You must be signed in to change notification settings - Fork 37
Release Notes
Christopher Park edited this page Oct 6, 2016
·
48 revisions
These are modifications since the previous release that require changes in your calls to the binding.
- Api.syntax_dependencies added
- Api.text_embedding added
- Binding reflects unification of
/entities
and/entities/linked
endpoints;/entities
returns a new response model which includes QIDs by default - resolve_entities parameter is not available anymore (entities method returns QIDs by default)
- linkEntities option is available to turn off QIDs through
api.setOption("linkEntities", False)
- Added
api.setOption
,api.getOption
andapi.clearOptions
to allow users to manage options as needed - Removed
RelationshipParameters
. It's only purpose was to extendDocumentParameters
to accept an options parameter. With the advent of the api option methods, it is no longer needed. UseDocumentParameters
andapi.setOption('accuracyMode', 'RECALL|PRECISION')
instead.PRECISION
is the default if no options are specified.
- (optional) genre parameter added
- Functions
translate_name()
andmatched_name()
have been deprecated and replaced withname_translation()
andname_similarity()
to represent the respective RosetteAPI endpoint name changes. - All responses now include the response headers in the returned dict -- make sure to access or filter the desired JSON response object in your code. Related to Rosette API's new headers mentioned here.
These changes should not require modifications to your bindings calls, but represent major internal changes, often correlating to Rosette API functional changes indicated here.
- removed 429 loop. All non-200 codes will be reported as exceptions
- max connections set according to Concurrency returned from Rosette API
- Updated unit tests to test the option methods
- Updated the relationship example to use DocumentParameters and api.setOption
- Internal restructuring to remove obsolete code and encapsulate request operations
- Revised unit tests to be individual per endpoint and exception
- The
unit
,contentType
, andcontentBytes
input parameters have been removed. Base64-encoded input should be sent as an input file. - The
X-RosetteAPI-Request-Id
andX-RosetteAPI-ProcessedLanguage
values have been added as response headers.