forked from rosette-api/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Release Notes
Hannah edited this page Jul 26, 2016
·
10 revisions
These are modifications since the previous release that require changes in your calls to the binding.
-
RosetteAPIclass constructors have been deprecated. API objects can be instantiated withBuilderclass. - Parameters
genre,language,options, andhttpClientare 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:
getLanguagegetEntitiesgetCategoriesgetRelationshipsgetSentimentgetTokensgetSentences
- Method
getMorphologyonly accepts parameters Morphological Feature and the input text, URL, or InputStream and content type - Method
getNameSimilarityaccepts two names instead of NameSimilarityRequest - Method
getLinkedEntitiesis deprecated.getEntitiesnow returns QID along with entity results.
- Method
matchNamehas been renamed togetNameSimilarityalong with its corresponding request and response data model classes, fromNameMatchingtoNameSimilarity - Method
translateNamehas been renamed togetNameTranslation - The confidence score field has been removed from 'getEntities'
- Method
getSentimentnow returns a sentiment for each resolved entity in addition to a document level sentiment - Method
getSentimentcan returnneu(neutral) in addition toposandneg - Enum
MorphologicalFeaturehas been separated from the main API class - A new
Labelclass has been added to represent sentiment and categories result elements, previouslySentimentandCategory - Other removed data model classes:
InputUnitScriptResponsePartOfSpeechLemmaHanReadingsCompoundComponentsCategoryTaxonomySentimentModelNameMatchingResultNameTranslationResultSchemesResponse
These changes should not require modifications to your bindings calls, but represent major internal changes, often correlating to Rosette API functional changes indicated here.
- The
unit,contentType, andcontentBytesinput parameters have been removed. Base64-encoded input should be sent in as anInputStreamwithout any encoding. - The
X-RosetteAPI-Request-IdandX-RosetteAPI-ProcessedLanguagevalues have been added as response headers. - Requests now use a builder pattern.