add knowledge extraction model 74c02dc
Mike commited on
How to use jjzha/escoxlmr_knowledge_extraction with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="jjzha/escoxlmr_knowledge_extraction") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("jjzha/escoxlmr_knowledge_extraction")
model = AutoModelForTokenClassification.from_pretrained("jjzha/escoxlmr_knowledge_extraction", device_map="auto")