Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/language

Package Overview
Dependencies
Maintainers
13
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/language

Google Cloud Natural Language API client for Node.js

  • 0.11.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19K
decreased by-0.37%
Maintainers
13
Weekly downloads
 
Created
Source

Node.js Client for Google Cloud Natural Language API (Beta)

Google Cloud Natural Language API: Google Cloud Natural Language API provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, and text annotations.

Quick Start

In order to use this library, you first need to go through the following steps:

  1. Select or create a Cloud Platform project.
  2. Enable the Google Cloud Natural Language API.
  3. Setup Authentication.

Installation

$ npm install --save @google-cloud/language

Preview

LanguageServiceClient
 var language = require('@google-cloud/language');

 var client = language({
    // optional auth parameters.
 });

 var content = 'Hello, world!';
 var type = language.v1.types.Document.Type.PLAIN_TEXT;
 var document = {
     content : content,
     type : type
 };
 client.analyzeSentiment({document: document}).then(function(responses) {
     var response = responses[0];
     // doThingsWith(response)
 })
 .catch(function(err) {
     console.error(err);
 });

Next Steps

Keywords

FAQs

Package last updated on 26 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc