ner_examples / app.py
Sunmar's picture
Create app.py
dfd3736 verified
raw
history blame
299 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("ner", model="SIRIS-Lab/affilgood-NER-multilingual", aggregation_strategy="simple")
print (pipe("NTT Basic Research Laboratories, NTT Corporation, 3-1 Morinosato-Wakamiya, Atsugi, Kanagawa 243-0198, Japan"))