How to use impira/layoutlm-document-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="impira/layoutlm-document-classifier")
# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-classifier") model = AutoModelForSequenceClassification.from_pretrained("impira/layoutlm-document-classifier")
Thank you very much!
@ankrgyl would it be possible to revert this? We used a tool that removed some existing metadata. We are now creating a PR that does not remove any existing information.
Reverting it would conflict with some changes that @nielsr made. Would you like me to revert all 3 changes? Or hold off?
It's fine now, no need to revert ;)
· Sign up or log in to comment