latin-ner

作者 eyldlv · 下载 0 · 点赞 0 · 更新 2023-11-01

NER for Latin

Trained using letters from the Bullinger collection, based on mbert.

How to use

import spacy
nlp = spacy.load('./enhg_pipeline')
doc = nlp('Norimberga in proximum quoddam Ulmensibus oppidulum Leypphaim sese contulit, certa spe recuperandae sedis, e qua nuper est detrusus.')
for ent in doc.ents:
  print(ent.text, ent.label_)

# Output:
# Norimberga GEO
# Ulmensibus GEO

Evaluation