nielsr/funsd-layoutlmv3
Viewer • Updated • 199 • 1.3k • 41
How to use Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD") # Load model directly
from transformers import AutoProcessor, AutoModelForTokenClassification
processor = AutoProcessor.from_pretrained("Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD")
model = AutoModelForTokenClassification.from_pretrained("Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD")# Load model directly
from transformers import AutoProcessor, AutoModelForTokenClassification
processor = AutoProcessor.from_pretrained("Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD")
model = AutoModelForTokenClassification.from_pretrained("Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD")This model is a fine-tuned version of microsoft/layoutlmv3-base on the nielsr/funsd-layoutlmv3 dataset. It achieves the following results on the evaluation set:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Ammar-alhaj-ali/LayoutLMv3-Fine-Tuning-FUNSD")