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

Add support for NERMuD 2023 Dataset #3087

Merged
merged 4 commits into from
Feb 14, 2023
Merged

Add support for NERMuD 2023 Dataset #3087

merged 4 commits into from
Feb 14, 2023

Conversation

stefan-it
Copy link
Member

Hi,

this PR adds support for the NERMuD 2023 Dataset. This dataset is a task presented at EVALITA 2023 consisting in the extraction and classification of named-entities in a document, such as persons, organizations, and locations.

From the Shared Task page:

NERMuD 2023 will include two different sub-tasks:

  • Domain-agnostic classification (DAC). Participants will be asked to select and classify entities among three categories (person, organization, location) in different types of texts (news, fiction, political speeches) using one single general model.

  • Domain-specific classification (DSC). Participants will be asked to deploy a different model for each of the above types, trying to increase the accuracy for each considered type.

For this purpose, the added NER_NERMUD dataset is implemented as a Multi Corpus. That means, different corpora (domains in this case) can be used and combined.

Usage

To use all domains, the following example can be used:

from flair.datasets import NER_NERMUD

all_nermud_domains = NER_NERMUD(domains="all")

It is also possible to combine domains, such as:

from flair.datasets import NER_NERMUD

combined_domains = NER_NERMUD(domains=["WN", "ADG"])

Possible domains are:

  • WN - Wikinews
  • FIC - Fiction
  • ADG - De Gasperi

More information can be found here.

@alanakbik
Copy link
Collaborator

@stefan-it thanks for adding this!

@alanakbik alanakbik merged commit 4de91b2 into master Feb 14, 2023
@alanakbik alanakbik deleted the add-nermud-support branch February 14, 2023 10:00
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.

None yet

2 participants