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