How to use BadreddineHug/LayoutLM_4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="BadreddineHug/LayoutLM_4")
# Load model directly from transformers import AutoProcessor, AutoModelForTokenClassification processor = AutoProcessor.from_pretrained("BadreddineHug/LayoutLM_4") model = AutoModelForTokenClassification.from_pretrained("BadreddineHug/LayoutLM_4")