stevengregory / watson-translator-node

IBM Watson Language Translator experiment with Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Watson Translator with Node

An experiment with the IBM Watson Language Translator service using Node. This simple app uses the Language Translator to perform intelligent language translation; simply enter a message into the prompt to activate Watson.

Demo

The language model is set for English to Japanese, but can be changed in the config.js file.

Requirements

  1. Sign up for an IBM Cloud account or simply log in.

  2. Create a Language Translator service.

  3. Get the API key (will be used later in .env config).

Getting Started

  1. Clone this repository.

    git clone https://github.com/stevengregory/watson-translator-node.git
    cd watson-translator-node
  2. Configure the environment settings.

    Create a .env file and place it in the root of the project directory.

    touch .env

    Add the API key from your IBM Watson service.

    API_KEY=your_api_key
  3. Install the npm packages.

    npm install
  4. Run the app!

    npm start

About

IBM Watson Language Translator experiment with Node


Languages

Language:JavaScript 100.0%