GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Transformers-Tutorials/LiLT at master · gpokat/Transformers-Tutorials

Expand file tree

/

LiLT

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

LiLT

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Create_LiLT_+_XLM_RoBERTa_base.ipynb
Create_LiLT_+_XLM_RoBERTa_base.ipynb
 
 
Fine_tune_LiLT_on_a_custom_dataset,_in_any_language.ipynb
Fine_tune_LiLT_on_a_custom_dataset,_in_any_language.ipynb
 
 
Fine_tune_LiltForTokenClassification_on_FUNSD_(nielsr_funsd).ipynb
Fine_tune_LiltForTokenClassification_on_FUNSD_(nielsr_funsd).ipynb
 
 
README.md
README.md
 
 
[HuggingFace_Trainer]_Fine_tune_LiltForTokenClassification_on_FUNSD_(nielsr_funsd_layoutlmv3).ipynb
[HuggingFace_Trainer]_Fine_tune_LiltForTokenClassification_on_FUNSD_(nielsr_funsd_layoutlmv3).ipynb
 
 

README.md

Outline

LiLT notebooks

LiLT (Language-independent Layout Transformer) is a nice model as it allows to plug-and-play any pre-trained RoBERTa model with a layout module, allowing to have a LayoutLM-like model for any language.

To combine LiLT with any pre-trained RoBERTa model from the 🤗 hub, please check out this notebook.

Next, it can be fine-tuned on a custom data as shown in this notebook.

There are 2 other notebooks in which I leverage LayoutLMv3Processor, but note that that's only possible because I fine-tune a checkpoint that uses the same vocabulary as LayoutLMv3. So it's recommended to use this notebook.

IMPORTANT note regarding position embeddings

Please always use an OCR engine that can recognize segments, and use the same bounding boxes for all words that make up a segment. This will greatly improve performance.

See these threads for more info:

  • jpWang/LiLT#28.
  • microsoft/unilm#838
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.