Git Product home page Git Product logo

document-conversion-nodejs's Introduction

Deprecated

The Document Conversion service was retired in October 2017, we have continued to improve document conversion capabilities within Watson Discovery, while also improving its integrated data pipeline and information retrieval capabilities. If you are a Document Conversion user, get started with Discovery today.

document-conversion-nodejs's People

Contributors

andresfvilla avatar brunodsp avatar germanattanasio avatar greenkeeperio-bot avatar kognate avatar mfulgo avatar mikemosca avatar nfriedly avatar samir-patel avatar sirspidey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

document-conversion-nodejs's Issues

Remove files older than 1 hour

The demo runs out of space if we don't remove the files in the upload folder. We used to do this using the find-remove package.

findRemoveSync = require('find-remove');

// Remove files older than 1 hour every hour.
setInterval(function() {
  var removed = findRemoveSync(__dirname + '/../uploads', { age: { seconds: 3600 } });
  if (removed.length > 0) {
    console.log('removed:', removed);
  }
}, 3600000);

Convert document without persisting them

We need to convert document without having to persisting them.
@Lhuihui we probably want to send the file and the output in one request as a form submission.

The nodejs-wrapper supports document conversion of files that were not uploaded to the service.

error installing

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Linux 4.2.0-27-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@^15.4.0
npm ERR! peerinvalid Peer [email protected] wants react@^15.4.0
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.6 || ^15.0.0
npm ERR! peerinvalid Peer [email protected] wants react@~0.14 || ~15.3.0

Conversion of own files only works on official demo

When I pick my own PDF file on the official demo it gets converted beautifully. However, when I follow the instructions, only the sample documents work, but when I upload my own file I get the following errors in my log:

2015-11-25T04:40:07.38+0100 [App/0] OUT error: { code: 'ENOENT',
2015-11-25T04:40:07.38+0100 [App/0] OUT error: 'ENOENT, open 'uploads/1448422807362-Survey of Text Clustering Algorithms.pdf'' } url: /files
[...]
2015-11-25T04:40:07.58+0100 [App/0] OUT error: { code: 'ENOENT',
2015-11-25T04:40:07.58+0100 [App/0] OUT error: 'ENOENT, no such file or directory '/home/vcap/app/uploads/'' } url: /api/convert?document_id=&conversion_target=NORMALIZED_TEXT

Any help to solve this would be highly appreciated. Thanks in advance.

Best,
Joe

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.