Skip to content
dgoldfarble edited this page Aug 9, 2016 · 10 revisions

Critical Changes

These are modifications since the previous release that require changes in your calls to the binding.

1.2.7

  • RosetteAPI class constructors have been deprecated. API objects can be instantiated with Builder class.
  • Parameters genre, language, options, and httpClient 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 a EntitiesOptions object
  • Request is now parent to all request classes. Categories, Entities, Language, Morphology, Relationships, and Sentiment have been consolidated into DocumentRequest.

1.1.0 (May 3, 2016)

  • genre added to Request. Setting genre="social-media" will return analyses from components optimized for tweet-length text.

1.0.0 (April 6, 2016)

  • Method matchName has been renamed to getNameSimilarity along with its corresponding request and response data model classes, from NameMatching to NameSimilarity
  • Method translateName has been renamed to getNameTranslation
  • 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 return neu (neutral) in addition to pos and neg
  • Enum MorphologicalFeature has been separated from the main API class
  • A new Label class has been added to represent sentiment and categories result elements, previously Sentiment and Category
  • Other removed data model classes:
    • InputUnit
    • ScriptResponse
    • PartOfSpeech
    • Lemma
    • HanReadings
    • CompoundComponents
    • CategoryTaxonomy
    • SentimentModel
    • NameMatchingResult
    • NameTranslationResult
    • SchemesResponse

Internal Changes

These changes should not require modifications to your bindings calls, but represent major internal changes, often correlating to Rosette API functional changes indicated here.

1.2.8

  • RosetteAPI's maximum concurrent connections set by pinging the server at initialization time.

1.1.0 (May 3, 2016)

  • The X-RosetteAPI-Request-Id and X-RosetteAPI-ProcessedLanguage values have been added as response headers.

1.0.0 (April 6, 2016)

  • The unit, contentType, and contentBytes input parameters have been removed. Base64-encoded input should be sent in as an InputStream without any encoding.
  • Requests now use a builder pattern.