ISE-FIZKarlsruhe/vasari_nlp

1

stars

187

commits

Jupyter Notebook

primary language

Oct 20, 2023

updated

README

Entity Extraction for the Historical Biographies of Giorgio Vasari

This repository contains data and source code used for the Entity Extraction experiments of Entity Recognition and Entity Disambiguation on Giorgio Vasari's Lives of The Artists.

Requirements

This code has been tested with Python 3.9 and the following requirements.

The code to run different Entity Recognition models is available in the Jupyter notebooks in the notebooks_ner directory.

The Entity Linking scripts in scripts_disambiguation rely on the mGENRE model from facebook. To run these scripts, you should install the GENRE library from source.

git clone https://github.com/facebookresearch/GENRE.git 
cd GENRE
pip install --editable ./

Moreover, for running the mGENRE model you need to download fairseq_multilingual_entity_disambiguation, titles_lang_all105_trie_with_redirect.pkl and lang_title2wikidataID-normalized_with_redirect.

UniversalNER Results

The model Universal-NER was used for Artwork and Subject Recognition. Scripts for inference are in scripts_uniner and the evaluation scripts are available in scripts_eval.

PrecisionRecallF1
Universal-NER/UniNER-7B-all (Artworks)54.862 (±5.76)56.532 (±4.79)55.606 (±4.79)
Universal-NER/UniNER-7B-all (Artworks filtered)73.921 (±6)54.055 (±3,6)62.38 (±4)
Universal-NER/UniNER-7B-all (Subjects)78.885 (±3,68)48.748 (±2,63)60.242 (±2,86)

Entity Linking Results

Scripts for the evaluation are available in scripts_eval.

Named Entity Recognition

PrecisionRecallF1
flair/ner-english-large84.781.182.9
flair/ner-english-ontonotes-large91.769.278.9
Babelscape/wikineural-multilingual-ner85.583.684.6

Entity Disambiguation

Accuracy
mGENRE0.643

Entity Linking

PrecisionRecallF1
Babelscape/wikineural-multilingual-ner + mGENRE0.5790.550.565

Contributors

sntcristian

181 commits

vasari-kg

6 commits

Languages

Jupyter Notebook

75.4%

Python

24.6%

ISE-FIZKarlsruhe/vasari_nlp

1

stars

187

commits

Jupyter Notebook

primary language

Oct 20, 2023

updated

README

Entity Extraction for the Historical Biographies of Giorgio Vasari

This repository contains data and source code used for the Entity Extraction experiments of Entity Recognition and Entity Disambiguation on Giorgio Vasari's Lives of The Artists.

Requirements

This code has been tested with Python 3.9 and the following requirements.

The code to run different Entity Recognition models is available in the Jupyter notebooks in the notebooks_ner directory.

The Entity Linking scripts in scripts_disambiguation rely on the mGENRE model from facebook. To run these scripts, you should install the GENRE library from source.

git clone https://github.com/facebookresearch/GENRE.git 
cd GENRE
pip install --editable ./

Moreover, for running the mGENRE model you need to download fairseq_multilingual_entity_disambiguation, titles_lang_all105_trie_with_redirect.pkl and lang_title2wikidataID-normalized_with_redirect.

UniversalNER Results

The model Universal-NER was used for Artwork and Subject Recognition. Scripts for inference are in scripts_uniner and the evaluation scripts are available in scripts_eval.

PrecisionRecallF1
Universal-NER/UniNER-7B-all (Artworks)54.862 (±5.76)56.532 (±4.79)55.606 (±4.79)
Universal-NER/UniNER-7B-all (Artworks filtered)73.921 (±6)54.055 (±3,6)62.38 (±4)
Universal-NER/UniNER-7B-all (Subjects)78.885 (±3,68)48.748 (±2,63)60.242 (±2,86)

Entity Linking Results

Scripts for the evaluation are available in scripts_eval.

Named Entity Recognition

PrecisionRecallF1
flair/ner-english-large84.781.182.9
flair/ner-english-ontonotes-large91.769.278.9
Babelscape/wikineural-multilingual-ner85.583.684.6

Entity Disambiguation

Accuracy
mGENRE0.643

Entity Linking

PrecisionRecallF1
Babelscape/wikineural-multilingual-ner + mGENRE0.5790.550.565

Contributors

sntcristian

181 commits

vasari-kg

6 commits

Languages

Jupyter Notebook

75.4%

Python

24.6%