ibm-aur-nlp / PubLayNet

Other
923 stars 164 forks source link

Thanks! #24

Open srush opened 4 years ago

srush commented 4 years ago

Thanks so much for this repo it has been amazingly useful. We used it to build ICLR 2020 virtual addition and added all the pictures this way!

https://twitter.com/srush_nlp/status/1253788694739386371

zhxgj commented 4 years ago

Hi @srush, Thanks for using PubLayNet. Glad to hear it helped!

zhxgj commented 4 years ago

Hi @srush We happen to be preparing a blog about PubLayNet and want to add this great news to the blog. Do you have an estimate of how much time you think PubLayNet saved you? Any type of metric will be greatly useful for us. Thanks very much.

srush commented 4 years ago

Infinity time, I would have given up. I tried every other direct PDF extraction method and they all had intractable issues, e.g. couldn't extract PDF images or were too low res or were just bad. I was about to give up until I found this tool, and in 20 lines of code, and 2 hours on Google Colab (sorry) , I had every image from 700 papers at high res with precise enough accuracy (it's unfortunately bad at columns? Guessing that is because of pubmed).

zhxgj commented 4 years ago

Thanks @srush for your feedback. Do you have any examples where the model is bad at columns? I can have a look if that is because of any bias or annotation errors in the data, if I can fix it.

srush commented 4 years ago

I don't have an exact example, but it seemed to do worse in papers like this where the text wraps around the images

https://openreview.net/pdf?id=Bkxv90EKPB

On Sun, Apr 26, 2020 at 11:47 PM zhxgj notifications@github.com wrote:

Thanks @srush https://github.com/srush for your feedback. Do you have any examples where the model is bad at columns? I can have a look if that is because of any bias or annotation errors in the data, if I can fix it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ibm-aur-nlp/PubLayNet/issues/24#issuecomment-619697506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAIYKV6FDR76WW2Y6E5LVLROT56BANCNFSM4MQ33L7A .

zhxgj commented 4 years ago

Ah, yes. The dataset does not have many samples with text wraps around images. Most journals do not typeset in that way. And I also think our automated annotation algorithm does not handle this case well, and poor annotations are excluded, which further reduces samples with this appearance.

zhxgj commented 4 years ago

Infinity time, I would have given up. I tried every other direct PDF extraction method and they all had intractable issues, e.g. couldn't extract PDF images or were too low res or were just bad. I was about to give up until I found this tool, and in 20 lines of code, and 2 hours on Google Colab (sorry) , I had every image from 700 papers at high res with precise enough accuracy (it's unfortunately bad at columns? Guessing that is because of pubmed).

Hi @srush , could I please quote your above feedback in our blog post?

srush commented 4 years ago

Yes you can use whatever you need.

Right, I figured this was non standard formatting. For whatever reason you do see it sometimes in NeurIPS, ICLR. For future years maybe we should generate a small finetuning set.

El lun., 27 de abril de 2020 3:29, zhxgj notifications@github.com escribió:

Infinity time, I would have given up. I tried every other direct PDF extraction method and they all had intractable issues, e.g. couldn't extract PDF images or were too low res or were just bad. I was about to give up until I found this tool, and in 20 lines of code, and 2 hours on Google Colab (sorry) , I had every image from 700 papers at high res with precise enough accuracy (it's unfortunately bad at columns? Guessing that is because of pubmed).

Hi @srush https://github.com/srush , could I please quote your above feedback in our blog post?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ibm-aur-nlp/PubLayNet/issues/24#issuecomment-619788430, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAIYKRBZIL5JFSKNHKMB7LROUX7PANCNFSM4MQ33L7A .

zhxgj commented 4 years ago

Thanks @srush Yes, it is a good idea to have a small fine-tuning set for a specific template. The set can be pre-annotated with our model then manually curated, which will save some time.

tshrjn commented 3 years ago

Hi there,

This is great! However, I just wanted to clarify why something like pyMupdf or pdfminer (& it's cli script for images) couldn't be used?

They seem straightforward. Am I missing something? Does publaynet do something additional like extract main image or so?

srush commented 3 years ago

Publaynet extracts the images as they are shown in the paper (cropped, captioned etc) which is more interesting and harder.