-
Notifications
You must be signed in to change notification settings - Fork 12
Release Notes
seth-mg edited this page Nov 20, 2024
·
45 revisions
These are modifications since the previous release that may require changes in your calls to the binding.
- Rebranding Rosette -> Analytics
- Use new url and api key header.
- recordSimilarity allows calls with
RecordSimilarityParameters
with empty fields and properties - Request timeout can be set on the Api objects. Default request timeout changed to 30 seconds
- Updated
/record-similarity
example
- Add support and example for
/record-similarity
- Add support and example for
/events
- Update
/entities
example to include Fast Coref Server option. - Update links in README.
- Upgrade dependencies
- CI overhaul
- Code smells
- Remove phpdoc artifacts from main source tree
- Support unfielded addresses and update address example for /address-similarity
- New Address Similarity endpoint
/address-similarity
- New Address Similarity example
- New Similar Terms endpoint
/semantics/similar
- New Similar Terms example
-
/text-embedding
endpoint changed to/semantics/vector
-
/text-embedding
example changed to/semantics/vector
example
- Multilingual language identification example
- User Agent includes runtime version
- New topics endpoint
- New topics example
- Added transliteration endpoint
- Added nameDeduplication endpoint
- Added examples for each
- Added api.setUrlParam(param, value) to provide a means for setting url query parameters. Example:
api.setUrlParam('output', 'rosette');
- getUrlParam and clearUrlParams are provided as well. A single url parameter may be removed by passing Null into setUrlParam.
- entities/linked completely removed
- changed setCustomerHeaders(array) to setCustomHeader(key, value) to align with setUrlParam and setOption
- removed get/setTimeout - never used internally
- syntaxDependencies endpoint added
- text-embedding endpoint 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 function returns QIDs by default)
- linkEntities option is available to turn off QIDs through
$api->setOption("linkEntities", FALSE);
- Added api.setOption, api.getOption and api.clearOptions methods to allow users to specify options as needed
- Removed RelationshipParameters. Use DocumentParameters instead and provide an option for
accuracyMode: PRECISION|RECALL
. Relationships defaults toPRECISION
if no option is specified.
- No impact on user operations
- Response data is returned as an associative array. The headers are included in the array, key name 'headers'.
- Enable cURL in php. This can be achieved by using the command
sudo apt-get install php5-curl
or by uncommenting the lineextension=php_curl.dll
in php.ini. -
Functions and classes removed: The
/matched-name
and/translated-name
endpoints have been renamed to/name-similarity
and/name-translation
in the Rosette API, so the PHP binding reflects those changes by adding the new functionsnameSimilarity
andnameTranslation
and new corresponding Parameters classes. FunctionsmatchedName
andtranslatedName
and their corresponding Parameters classes are no longer supported. - All responses now include the response headers in the returned JSON -- 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.
- Added topics endpoint to Api
- Created unit test for topics
- Added unit tests for new endpoints and parameter classes
- Updated README
- Refactored RosetteRequest to use rmccue/requests instead of curl
- removed retries on 429 error code. All errors will throw an exception.
- Relocated the http connection to be at the Api level in order to reuse the connection
- Adjusted the max connections per the Concurrency return from Rosette API
- Changed DocumentProperties.fileName from public to private and added a getter for it to prevent it from being included in the serialization of class parameters
- Updated unit tests per Options and removal of Relationships
- Updated relationships example
- Cleanup of RosetteParamsSetBase
- Removed active check of binding version against server version
- Retooled unit testing to use phpSpec
- Internal code changes per unit test and functional test discoveries
- Fixed some possible conflicts with PHP 7. Tests pass with PHP 7.
- Added a retry feature when encountering 429 (too many requests) errors. The user may specify the number of retries, default 5, and the number of milliseconds between retries, default 500000, to reduce the number of 429s.
- 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. - The 'retrying requests' mechanism has been removed and the function name has been changed to
makeRequest()
. - GET and POST requests are now composed and made using cURL instead of with
file_get_contents()
.