-
Notifications
You must be signed in to change notification settings - Fork 36
Release Notes
seth-mg edited this page Nov 15, 2024
·
48 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.
- New artifact,
rosette-api-all
, for resolving jar hell errors generated during ES plugin compilation.
-
FieldedAddress
andFieldedDate
fields are expanded - Added info messages to
RecordSimilarityResponse
andRecordSimilarityResult
-
RecordSimilarityProperties
supports sendingparameters
orparameterUniverse
-
RecordSimilarityFieldInfo
now have ascoreIfNull
field, to specify a value for when a field is missing in a record - Upgrade to Open Source Parent pom 19.0.0
Breaking changes:
-
Response
will deserialize fields toUnknownField
objects - Changed error to be a list of String in
RecordSimilarityResult
-
FieldedAddress
no longer has an address field -
RecordFieldType
changed from an enum to a class with public static String values
-
/name-translation
can now, optionally, return a list of results. - Add support and example for
/record-similarity
- Add support for Indoc Coref Server for
/entities
- Website, logo, email address and other branding updates.
- Library upgrades
- Add thread pool for supporting concurrent requests. Includes an example to demonstrate usage. (RCB-597)
- Events requests support negation option (WS-2853)
- Upgrade to Open Source Parent pom 17.0.0
- Upgrade to Open Source Parent Pom 15.0.0
- The Semantics endpoints have a new option called
embeddingsMode
to select which model you want to use. See the release notes for 1.26.0 for a more thorough description of the change.
- Restore
genre
but ignore it. - Restore
numCategories
inCategoriesOptions
.
- Removed all instances of
genre
in JSON structures. - Removed the
Address
class. - Removed
numCategories
inCategoriesOptions
. - Removed
dbpediaType
inEntity
. - Removed
includeDBpediaType
inEntitiesOptions
.
- Marking the
genre
field for/entities
as deprecated - Adding
regexCurrencySplit
option
- Added
linkMentionMode
request option for/entities
- Compiled with Java 17, targeting Java 11.
- Added DNN model type to
/morphology
endpoints.
-
/events
support theplan
option. -
/events
options validation removed. - In
PoolingHttpClientConnectionManager
override the default value ofDefaultMaxPerRoute
and set it to the connection concurrency. - Use new open source parent to deploy to new OSS server.
- Make
/events
workspaceId
non-nullable. - Add a
structuredRegionProcessingType
flag. - Add a "Generic Response" to the API model.
-
enableStructuredRegion
property for/entities
. Default value isfalse
. - Add support for
/events
endpoint. - Add
workspaceId
option for/events
- Upgrade to version 2.7.2 of Annotated Data Model.
- Upgrade to version 4.5.13 of Apache HTTP Components.
- Response payload on calls to
/info
now includelicenseExpiration
string. Requires minimum Server version of 1.18.0.
- Parameters option for
/address-similarity
and/name-similarity
- RTS decoder option for
/entities
- Case Sensitivity option for
/entities
- Support unfielded addresses and update address example for /address-similarity
- Added a boolean field
licensed
to theSupportedLanguagePair
class where true indicates that you are licensed for the particular language. SeeHttpRosetteAPI.getSupportedLanguages
andSupportedLanguagesResponse
- Custom Regex entry support (On-Prem only)
- New Address Similarity endpoint
/address-similarity
- added new
includePermID
option for/entities
and associated response field,permId
. - added new
includeDBpediaTypes
option for/entities
and associated response field,dbpediaTypes
. - deprecated
includeDBpediaType
option for/entities
and associated response field,dbpediaType
.
- added
PERCEPTRON
toDisambiguatorType
- 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
- removed java 7 compatibility
- added morpho option for disambiguator
- removed dependency on guava
- Added a method to get supported languages per endpoint:
HttpRosetteAPI.getSupportedLanguages(String endpoint)
. This method will return aSupportedLanguageResponse
containing information about the supported languages and scripts.
-
LanguageOptions
now includes theBoolean
fieldkoreanDialects
to control whether North and South Korean should be returned instead of Korean.
-
CategoriesOptions
class now includes BooleansingleLabel
and FloatscoreThreshold
parameters. Additionally, thenumCategories
option has been deprecated. Users should instead use thescoreThreshold
option to control the returned results. The default mode for the/categories
endpoint is now multilabel, and users should set thesingleLabel
option totrue
to return to the old (pre 1.11.0) behavior. -
CategoriesResponse
class now contains a list ofCategoryLabel
s. ACategoryLabel
class contains the same fields as the previously usedLabel
class, but also includes a Doublescore
field representing the label's raw score. This value can be between negative infinity and infinity.
- There is a new
TextEmbeddingOptions
class, which allows users to request per-token embeddings from the/text-embedding
endpoint. This can be enabled by settingperToken
totrue
. - The
TextEmbeddingResponse
classembedding
field has been renamed todocumentEmbedding
. Additionally, two fields,tokens
andtokenEmbeddings
, have been added to the class in order to reflect the/text-embedding
endpoint's new support for per-token embeddings.
- There’s a new option in
EntitiesOptions
,includeDBpediaType
(off by default), that, when enabled, returns both the new DBpedia entity types as well as the extended range of possible macro entity types. See the Rosette Cloud/Enterprise release notes for additional information.
- Expose
/morphology
model type option
-
EntitiesOptions
class now includes a StringmodelType
parameter.
-
RosetteAPI
class constructors have been deprecated. API objects can be instantiated withBuilder
class. - Parameters
genre
,language
,options
, andhttpClient
are linked to the API object and apply to all calls made with the object. - The following methods now only have input text, URL, or a stream and content type passed as a parameter:
getLanguage
getEntities
getCategories
getRelationships
getSentiment
getTokens
getSentences
- Method
getMorphology
only accepts parameters Morphological Feature and the input text, URL, or InputStream and content type - Method
getNameSimilarity
accepts two names instead of NameSimilarityRequest - Unified /entities endpoint.
getLinkedEntities
method has been deprecated.getEntities
now by default returns linked entities with the option to disable this feature through aEntitiesOptions
object -
Request
is now parent to all request classes.Categories
,Entities
,Language
,Morphology
,Relationships
, andSentiment
have been consolidated intoDocumentRequest
.
-
genre
added toRequest
. Settinggenre="social-media"
will return analyses from components optimized for tweet-length text.
- Method
matchName
has been renamed togetNameSimilarity
along with its corresponding request and response data model classes, fromNameMatching
toNameSimilarity
- Method
translateName
has been renamed togetNameTranslation
- The confidence score field has been removed from 'getEntities'
- Method
getSentiment
now returns a sentiment for each resolved entity in addition to a document level sentiment - Method
getSentiment
can returnneu
(neutral) in addition topos
andneg
- Enum
MorphologicalFeature
has been separated from the main API class - A new
Label
class has been added to represent sentiment and categories result elements, previouslySentiment
andCategory
- Other removed data model classes:
InputUnit
ScriptResponse
PartOfSpeech
Lemma
HanReadings
CompoundComponents
CategoryTaxonomy
SentimentModel
NameMatchingResult
NameTranslationResult
SchemesResponse
These changes should not require modifications to your bindings calls, but represent major internal changes, often correlating to Rosette API functional changes indicated here.
- Updates to jackson
- Multilingual language identification example
- User Agent includes runtime version
- Fixed null pointer error when using the builder with no url() step. Now defaults to https://api.rosette.com/rest/v1
- Modified sentiment example to use UTF-8 instead US-ASCII
- Example pom updated to remove sl4j log warnings
-
RosetteAPI
's maximum concurrent connections set by pinging the server at initialization time.
- The
X-RosetteAPI-Request-Id
andX-RosetteAPI-ProcessedLanguage
values have been added as response headers.
- The
unit
,contentType
, andcontentBytes
input parameters have been removed. Base64-encoded input should be sent in as anInputStream
without any encoding. - Requests now use a builder pattern.