Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds ZELDA Entity Linking dataset #3088

Merged
merged 4 commits into from
Feb 10, 2023
Merged

Adds ZELDA Entity Linking dataset #3088

merged 4 commits into from
Feb 10, 2023

Conversation

alanakbik
Copy link
Collaborator

Adds the ZELDA dataset for training and evaluating entity linking, introduced in our upcoming EACL paper "ZELDA: A Comprehensive Benchmark for Supervised Entity Disambiguation".

This snippet shows how to load the corpus and inspect the entity links.

from flair.datasets import ZELDA

# get Zelda corpus and print statistics
corpus = ZELDA()
print(corpus)

# get an example sentence and print
sentence = corpus.test[1]
print(sentence)

# iterate over linked entities in sentence and print each
for entity in sentence.get_labels('nel'):
    print(entity)

@alanakbik alanakbik changed the title Zelda dataset Adds ZELDA Entity Linking dataset Feb 7, 2023
@alanakbik alanakbik merged commit 13c03a4 into master Feb 10, 2023
@alanakbik alanakbik deleted the zelda_dataset branch February 10, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant