paperai / pdfanno Goto Github PK
View Code? Open in Web Editor NEWLinguistic Annotation and Visualization Tool for PDF Documents
Linguistic Annotation and Visualization Tool for PDF Documents
I've changed gulpfile.js and updated gulp-cli to version 4.0.2 so everything works properly.
https://github.com/Forfxout/pdfanno
Installation:
$ npm install -g gulp-cli # with node >= 10.
$ npm install
$ npm audit fix # if required, but please note that you don't need to force
$ npm run front:dev
I just tested out your demo on my own pdf. The highlight seems to have some static lines it can follow which was inbetween my line seperation. In addition the text that is highlight is not the text that shows up in the annontation download. Essentially making this product not function in a useable way. I can send along my pdf and annontation file to demostrate.
Hi, I am running in an issue where left/right arrows don't work. Did you disable it on purpose or where can be a problem? I thought it is in pdf.js library on default.
Thanks
npm run anno:watch is command for run, but when go to my public IP dont work
Whenever I upload a pdf and click on the pencil to select text, the selection doesn't seem to be happening.
i need put in port 3020, where edit that?
Hello @hshindo! It looks like @navinisoft created a version 5.1 of this repo that works by using the output of java -classpath pdfextract.jar PDFExtractor example.pdf
along with example.pdf
to render the PDF and do the highlighting. I was wondering if either of you have that JAR available somewhere, and if you could share it somewhere or add it to this repo. I cannot find the repo in which this JAR is supposed to be anymore: https://web.archive.org/web/20180627073429/https://github.com/paperai/pdfextract/
It would also really help if the README.md explained that each PDF is expected to be uploaded with a corresponding pdf.txt.gz file and that otherwise highlighting won't work. I had to play around with the code for a while and go through a few versions to figure that out.
Thank you for your help! I like the work you guys did on pdfanno and I'm hoping to use it. Cheers!
It is more a suggestion than an issue : would it be possible to add colored spans ? They are currently all yellow -tell me if I'm wrong-. It would be really easier for the annotator to distinct spans.
Thanks again for your great work.
Using Safari (Version 12.0.2 (13606.3.4.1.4)), the relation arrows are not displayed.
Tested on https://paperai.github.io/pdfanno/latest/
Seems to work with Chrome though.
npm install
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /vuepress/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] requires a peer of webpack@1 || ^2.1.0-beta but none was installed.
npm run server
npm ERR! Linux 4.15.0-24-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "server"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! missing script: server
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/caseybasichis/Prog/text/pdfanno/npm-debug.log
The Link mentioned in package.json https://github.com/paperai/pdfextract/releases/download/v0.3.0/pdfextract-0.3.0.jar for getting pdfextract-0.3.0.jar getting 404 page not found error. where can i get the pdfextract-0.3.0.jar? can some one share latest path?
package.json specifies that pdfextract-0.2.4.jar
should be downloaded from https://github.com/paperai/pdfextract/releases/download/untagged-6b0e4f23df695e8b7587/pdfextract-0.2.4.jar
however that link 404s. If you don't already have pdfextract-0.2.4.jar
then github's 404 error html page gets saved as the pdfextract-0.2.4.jar
and processing fails.
Can u update video demostration, new version is confuse me
Hi,
I am trying to set up your project on local environment but I've got some problem when I want to load my own .pdf file. It seems every pdf file must have .txt.gz version. What is this for? Can I disable it somehow?
Failed to analyze the PDF.
Reason: Error: HTTP 404 - pdftxtファイルのロードに失敗しました。
Thanks
I am interested in your project and tool PDFAnno
.
I tried to install PDFAnno locally as mentioned in README.md
.
All steps are OK except last:
npm run server
Looked in package.json
there is not server
script.
Can you help me to install locally PDFAnno
!
It seems that the textrange returned in the annotation file is incorrect, when you compare it to the textrange of the pdftxt file.
For example, if I have the a span "Syntatic parsing", in the annotation file its textrange is [1313,1328], but in the pdftxt file it is [1533-1549] (which seems correct).
Thanks for your work !
After starting demo. I get following error:
Error
Failed to analyze the PDF.
Reason: [object ProgressEvent]
am getting below error while running application ,could you please help me to resolve the issue
E:\R&D\POC\pdfanno>npm start
[email protected] start E:\R&D\POC\pdfanno
node index.js
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module 'E:\R&D\POC\pdfanno\index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shravan\AppData\Roaming\npm-cache_logs\2019-04-11T02_07_53_442Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.