SpaCy transformers support for LayoutLM models #11643
timothyjlaurent
started this conversation in
New Features & Project Ideas
Replies: 1 comment
-
Hi @timothyjlaurent , the extension you're describing may be out of scope in spaCy, but we think that it's a great addition to the spaCy Universe. This can be in a form of a custom component that users can install and import.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
It would be great if we could use LayoutLM models as the transformer component in spacy pipelines. There are some differences in how the LayoutLM models work that make it incompatible with SpacyTransformers.
I've started to look at parts of SpaCyTransformers could be cloned and altered to to support these layoutlm type of models.
Currently, I'm adding the image and bounding boxes as extension attributes to the doc and then use a span extension to grab them when making spans:
And then creating the Docs directly from our internal LayoutLM model
Wonder if there are any thoughts or guidance on how to best support LayoutLM models in SpaCy.
Beta Was this translation helpful? Give feedback.
All reactions