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")
Modelde il ve ilçe yalnızca sırasına göre etiketleniyor. Sözgelimi eğer İstanbul/Bağcılar yazarsanız model İstanbul'u ilçe, Bağcılar'ı il olarak etiketliyor.
· Sign up or log in to comment