Update model files and tokenizer configuration d1aed23
duoquote commited on
How to use nextgeo/address-extraction with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="nextgeo/address-extraction") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("nextgeo/address-extraction")
model = AutoModelForTokenClassification.from_pretrained("nextgeo/address-extraction")