-
Notifications
You must be signed in to change notification settings - Fork 36
Release Notes
Joe Ho edited this page Apr 8, 2020
·
48 revisions
These are modifications since the previous release that may require changes in your calls to the binding.
- 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.