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 tagger_modules option to tagger cli #69

Merged
merged 9 commits into from
Nov 6, 2023
Merged

Add tagger_modules option to tagger cli #69

merged 9 commits into from
Nov 6, 2023

Conversation

peterbjorgensen
Copy link
Contributor

Enable the user to provide a list of modules to load custom taggers from.
The Dolma CLI is fully configurable through config files except when it comes to adding custom taggers.
This PR adds the option to load Python modules that could add to the TaggerRegistry

Enable the user to provide a list of modules to load custom taggers
from.
Enable the user to provide a list of modules to load custom taggers
from.
The TaggerRegistry gets reimporterd on the child processes when they
are spawned, so we need to import the tagger modules in the child
processes or the taggers will not be present in the registry.
@soldni soldni self-requested a review November 6, 2023 16:56
Copy link
Member

@soldni soldni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @peterbjorgensen ! I've taken the liberty to modify the import function to support paths, added tests, and included documentation.

@soldni soldni merged commit 20871e9 into allenai:main Nov 6, 2023
12 checks passed
@peterbjorgensen
Copy link
Contributor Author

Thanks a lot for merging this PR @soldni and the awesome improvements you've made.

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