Coder Social home page Coder Social logo

purukn / dc-alchemy-sample Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

Example to extract custom entities from PDF documents. Uses Watson Document Conversion and Watson Alchemy Language (using custom model) APIs.

JavaScript 74.05% HTML 9.82% CSS 16.13%

dc-alchemy-sample's Introduction

dc-alchemy-sample Overview

This Node.js Application demonstrates how Custom entities can be identified in a PDF document. PDF documents when uploaded gets converted into sections using Watson Document Conversion service. Alchemy Language's getEntities API is then used using a Custom trained model to get entities present in the sections of the PDF document.

Deploy to Bluemix

Note: Please add new bindings for Document Conversion and Alchemy Language Services for the newly created application. Alternatively, you can mention access information of already existing Services as below in Environment Variables:

API_KEY=alchemy_language_api_key

MODEL_ID=alchemy_language_custom_model_id

DC_USER_NAME=document_conversion_user_name

DC_PASSWORD=document_conversion_password

Run the app locally

  1. Install Node.js
  2. Download and extract the starter code from the Bluemix UI
  3. cd into the app directory
  4. Add a .env file in app directory providing values for above mentioned environment variables
  5. Run npm install to install the app's dependencies
  6. Run npm start to start the app
  7. Access the running app in a browser at http://localhost:6001

API information

URL: /entities (POST) Input: PDF document uploaded as form-data parameter named "file"

dc-alchemy-sample's People

Contributors

purukn avatar

Watchers

 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.