Releases: googleapis/nodejs-language
@google-cloud/language v0.12.1
@google-cloud/language v0.11.0
⚠️ 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
@google-cloud/language v0.10.2
@google-cloud/language v0.10.0
⚠️ Breaking Changes!
Dropped support for Node v0.12.x
- PR: #2171
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
⚠️ 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
@google-cloud/language v0.7.0
⚠️ Breaking Changes!
salience and sentiment ranges changed
salienceis now a value between0.0and1.0.sentimentis between-1.0and1.0. (#1836)
Features
- Auto-detect
projectId. See Authentication for more. (#1656)
@google-cloud/language v0.6.3
@google-cloud/language v0.6.0
⚠️ 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
polarityproperty within asentimentobject has been renamed toscorein verbose mode. - The
magnitudeproperty is no longer multiplied by 100 in verbose mode. partOfSpeechTaghas been renamed to simplytag.
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'
// },
// ...
// ]
});