
markuplm
Documents and OCR612 ops120M params
A document model that reads text together with where it sits on the page.
Documents and OCR · 420 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
This model is LayoutLMForMaskedLM, the masked language modeling form of LayoutLM.
About this model's family
LayoutLM is a model for documents that learns the text and the layout of the page together, not the text alone. It incorporates positional layout information and visual features of words from the document images.
LayoutLM does not read a page image by itself: it expects words and their bounding boxes from an external OCR engine. Each bounding box is given in the format (x0, y0, x1, y1), the upper left and lower right corners. The boxes are normalized on a 0-1000 scale.
Key idea. LayoutLM jointly learns text and document layout, incorporating positional layout information and visual features of words from the document images.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.