Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Releases: googleapis/nodejs-language

@google-cloud/language v0.12.1

13 Oct 17:13
Compare
Choose a tag to compare

release level

Features

  • Added analyzeEntitySentiment method. (#2612)

@google-cloud/language v0.11.0

13 Oct 17:10
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes

The majority of our Natural Language API has changed (PR: #2422). Please refer to the API documentation for more information on how to use the module.

Please open an issue with any feedback, questions, or issues. We're happy to help during the transition.

@google-cloud/language v0.10.6

13 Oct 17:07
Compare
Choose a tag to compare

release level

Features

  • Update parameters under which requests are retried. (#2390)

@google-cloud/language v0.10.2

13 Oct 17:06
Compare
Choose a tag to compare

release level

Features

  • Expose v1beta2 auto-generated API. (#2188)
  • Allow opting in to the v1beta2 API. (#2203)

@google-cloud/language v0.10.0

13 Oct 17:04
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Dropped support for Node v0.12.x

We've officially dropped support for Node v0.12.x in all of our APIs. It may still work, but it is not officially supported and may stop working at any time.

@google-cloud/language v0.9.0

13 Oct 17:03
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

No more verbose mode

We have removed the verbose option from our API. The Cloud Language API returns a condensed result already, so it was decided to pass it straight through to the callback. The details of the response objects are linked from our API documentation.

Features

  • Introduce default encoding support. (#2054)
  • Allow raw API terminology to annotate(). (#2055)
  • Remove verbose option. (#2056)

@google-cloud/language v0.7.0

13 Oct 17:00
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

salience and sentiment ranges changed

  • salience is now a value between 0.0 and 1.0. sentiment is between -1.0 and 1.0. (#1836)

Features

@google-cloud/language v0.6.3

13 Oct 16:56
Compare
Choose a tag to compare

release level

Bugfixes

@google-cloud/language v0.6.0

13 Oct 16:54
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes

PR: #1783

We've updated to v1 of the upstream Language API! This includes several new features, but also broke a couple as well.

  • The polarity property within a sentiment object has been renamed to score in verbose mode.
  • The magnitude property is no longer multiplied by 100 in verbose mode.
  • partOfSpeechTag has been renamed to simply tag.

Before

document.annotate({ verbose: true }, function(err, annotation) {
  // annotation.sentiment = {
  //   polarity: 100,
  //   magnitude: 400
  // }
});

After

document.annotate({ verbose: true }, function(err, annotation) {
  // annotation.sentiment = {
  //   score: 100,
  //   magnitude: 4
  // }
});

There's also a new method used for getting the syntax of a document - document#getSyntax.

document.getSyntax(function(err, tokens) {
  // tokens = [
  //   {
  //     text: 'Google',
  //     partOfSpeech: 'Noun (common and proper)',
  //     tag: 'NOUN',
  //     aspect: 'PERFECTIVE',
  //     case: 'ADVERBIAL',
  //     form: 'ADNOMIAL',
  //     gender: 'FEMININE',
  //     mood: 'IMPERATIVE',
  //     number: 'SINGULAR',
  //     person: 'FIRST',
  //     proper: 'PROPER',
  //     reciprocity: 'RECIPROCAL',
  //     tense: 'PAST',
  //     voice: 'PASSIVE'
  //   },
  //   ...
  // ]
});

@google-cloud/language v0.5.0

13 Oct 16:53
Compare
Choose a tag to compare

release level

Features

  • Updated auto-generated API. (#1723)