pytorch-struct icon indicating copy to clipboard operation
pytorch-struct copied to clipboard

[Question] How to apply pytorch-struct for 2 dimensional data?

Open YuriyPryyma opened this issue 2 years ago • 4 comments

I could find examples of pytorch struct usage for 1d sequence data like text or video frame. But I'm trying to parse tables structure in pdf documents.

Could you provide some hints where to start?

YuriyPryyma avatar Feb 09 '22 19:02 YuriyPryyma

Do you have a paper reference? I don't know much about 2d parsing, but we could add something.

srush avatar Feb 09 '22 20:02 srush

Hi Here is an example of 2D-CFG https://hal.archives-ouvertes.fr/hal-00861080/document image

YuriyPryyma avatar Feb 10 '22 10:02 YuriyPryyma

Here is example of table structure recognition using CRF https://people.cs.umass.edu/~mccallum/papers/crftable-sigir2003.pdf

YuriyPryyma avatar Feb 10 '22 10:02 YuriyPryyma

neat, I'll take a look. I think the bottom paper is just a standard 1d CRF, but the top paper looks like it has special 2d grammars.

srush avatar Feb 11 '22 18:02 srush