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 exclude labels parameter to trainer.train and minor change in AIDA #2724

Merged
merged 6 commits into from
May 5, 2022

Conversation

marcelmmm
Copy link
Collaborator

@marcelmmm marcelmmm commented Apr 11, 2022

Add the exclude_labels parameter to ModelTrainer.train. The parameter is already contained in the evaluate of nn.model.classifier. Now every time evaluate is called in ModelTrainer.train the exclude_labels parameter is handed over.

Moreover there is a minor change in the NEL_ENGLISH_AIDA corpus. Default, the (possibly outdated) wikipedia names will be used as label names. Before the corpus used the wikipedia ids to get the label names.
One can now work with up-to-date label names and only use existing wikipedia pages by setting the parameter use_ids_and_check_existence to True.

@alanakbik
Copy link
Collaborator

@marcelmmm what is this PR about? Can you please add a description to this PR?

@alanakbik alanakbik merged commit d2734e0 into master May 5, 2022
@alanakbik alanakbik deleted the exclude_labels_parameter_in_trainer branch May 5, 2022 12:42
@alanakbik
Copy link
Collaborator

@marcelmmm thanks for adding this!

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.

2 participants