4 ms·
It’s a shame all these models target markdown and not something with more structure and a specification. There are different flavors of Markdown and limited sup
by ks2048 1y ago
It’s a shame all these models target markdown and not something with more structure and a specification. There are different flavors of Markdown and limited support for footnotes, references, figures, etc.
- souvik3333 1y agoActually, we have trained the model to convert to markdown and do semantic tagging at the same time. Eg, the equations will be extracted as LaTeX equations, and images (plots, figures, and so on) will be described within the `<img>` tags. Same with `<signature>`, `<watermark>`, <page_number>. Also, we extract the tables as HTML tables instead of markdown for complex tables.
- jtbayly 1y agoWhat happens to footnotes?
- souvik3333 1y agoThey will be extracted in a new line as normal text. It will be the last line.
- jtbayly 1y agoSo I’m left to manually link them up? Have you considered using something like Pandoc’s method of marking them up? Footnotes are a fairly common part of scanned pages, and markdown that doesn’t indicate that a footnote is a footnote can be fairly incomprehensible.
- agoose77 1y agoI am lazily posting this all over the thread, but do check out MyST Markdown too! https://mystmd.org https://mystmd.org. We handle footnotes as a structured object.
- mgr86 1y agoHave you considered XML. TEI, for example, is very robust and mature for marking up documents.
- esafak 1y agoFirst I heard of it. https://en.wikipedia.org/wiki/Text_Encoding_Initiative https://en.wikipedia.org/wiki/Text_Encoding_Initiative
- mgr86 1y agoUnderstandable. I work in academic publishing, and while the XML is everywhere crowd is graying, retiring, or even dying :( it still remains an excellent option for document markup. Additionally, a lot of government data produced in the US and EU make heavy use of XML technologies. I imagine they could be an interested consumer of Nanonets-OCR. TEI could be a good choice as well tested and developed conversions exist to other popular, less structured, formats.
- jxramos 1y agomaybe even epub, which is xhtml
- agoose77 1y agoDo check out MyST Markdown (https://mystmd.org https://mystmd.org)! Academic publishing is a space that MyST is being used, such as https://www.elementalmicroscopy.com/ https://www.elementalmicroscopy.com/ via Curvenote. (I'm a MyST contributor)
- starkparker 1y agoI was more excited to hear about "structured Markdown" than the LLM OCR model, but the extent of it just seems to be tagging certain elements. It's useful in the LLM context but not as much outside of it.
- agoose77 1y agoFeel free to check out MyST Markdown, which very much aims to specify "structured Markdown": https://mystmd.org https://mystmd.org