Giter Site home page Giter Site logo

bprabhuin / language-translator-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from watson-developer-cloud/language-translator-nodejs

1.0 2.0 0.0 3.59 MB

Sample Node.js Application for the IBM Language Translation Service

Home Page: https://language-translator-demo.mybluemix.net

License: Apache License 2.0

JavaScript 16.05% CSS 75.75% HTML 8.20%

language-translator-nodejs's Introduction

Language Translator Node.js Build Status

The IBM Watson™ Language Translator service provides an Application Programming Interface (API) that lets you identify the language of text, and then use a custom business domain to translate the text from one supported language to another.
You can translate either by letting the service identify the source language or by selecting a source language and then by selecting a target language, and a business domain. Domain translation is linguistically targeted these business domains:

  • The News domain - targeted at news articles and transcripts, it translates English to and from Arabic, Brazilian Portuguese, French, Italian, or Spanish. It also translates Spanish to and from French.
  • The Conversational domain - targeted at conversational colloquialisms, it translates English to and from Arabic, Brazilian Portuguese, French, Italian, or Spanish.
  • The Patent domain - targeted at technical and legal terminology, it translates Brazilian Portuguese, Chinese, or Spanish to English.

Give it a try! Click the button below to fork into IBM DevOps Services and deploy your own copy of this application on Bluemix.

Deploy to Bluemix

Getting started

  1. You need a Bluemix account. If you don't have one, sign up. Experimental Watson Services are free to use.

  2. Download and install the Cloud-foundry CLI tool if you haven't already.

  3. Edit the manifest.yml file and change <application-name> to something unique. The name you use determines the URL of your application. For example, <application-name>.mybluemix.net.

    applications:
    - services:
      - language-translator-service
      name: <application-name>
      command: node app.js
      path: .
      memory: 128M
  4. Connect to Bluemix with the command line tool.

cf api https://api.ng.bluemix.net
cf login
  1. Create the Language Translator service in Bluemix.

    cf create-service language_translator lite language-translator-service
    cf create-service-key language-translator-service myKey
    cf service-key language-translator-service myKey
  2. Create a .env file in the root directory by copying the sample .env.example file using the following command:

cp .env.example .env

You will update the .env with the information you retrieved in steps 5.

The .env file will look something like the following:

SPEECH_TO_TEXT_USERNAME=<username>
SPEECH_TO_TEXT_PASSWORD=<password>
  1. Install the dependencies you application need:
npm install
  1. Start the application locally:
npm start
  1. Point your browser to http://localhost:3000.

  2. Optional: Push the application to Bluemix:

cf push

After completing the steps above, you are ready to test your application. Start a browser and enter the URL of your application.

        <your application name>.mybluemix.net

For more details about developing applications that use Watson Developer Cloud services in Bluemix, see Getting started with Watson Developer Cloud and Bluemix.

Troubleshooting

  • The main source of troubleshooting and recovery information is the Bluemix log. To view the log, run the following command:

    $ cf logs <application-name> --recent
  • For more details about the service, see the documentation for the Language Translator.

License

This sample code is licensed under Apache 2.0. Full license text is available in LICENSE. This sample code is using jQuery which is licensed under MIT. This sample code is using bootstrap which is licensed under MIT.

Contributing

See CONTRIBUTING.

Open Source @ IBM

Find more open source projects on the IBM Github Page

language-translator-nodejs's People

Contributors

germanattanasio avatar nfriedly avatar lbandera-ibm-research avatar greenkeeperio-bot avatar lhuihui avatar sirspidey avatar jsstylos avatar kognate avatar ehdsouza avatar jzhang300 avatar kcheat avatar markhoekstra avatar rmoe avatar michelle-miller avatar

Stargazers

Hadj H. avatar

Watchers

Prabaharan balaguru avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.