davidmerrick / lambda-text-classifier

Lambda function that uses IBM Watson to classify text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lambda function which uses IBM Watson to classifiy text.

Reference

Features

  • Includes gulp config for deployment

Usage:

  1. Set up an IAM role or user with Lambda access using the "AWSLambdaFullAccess" policy.
  2. Create a conf/lambda-config.js file with the following contents:
module.exports = {
    accessKeyId: null, // AWS access key here
    secretAccessKey: null, // AWS secret here
    region: null, // Region here (will probably be 'us-east-1')
    handler: 'index.handler',
    functionName: null, // Lambda function name here>
    timeout: 10,
    memorySize: 128,
    publish: true, // default: false,
    runtime: 'nodejs4.3'
}
  1. Write the code for your app.
  2. Deploy your code to your Lambda function:
gulp deploy

About

Lambda function that uses IBM Watson to classify text


Languages

Language:JavaScript 100.0%