-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 apply CLI #11376
Add apply CLI #11376
Conversation
The way the data loading is done is with a bunch of nested Also this |
I think it would make more sense to go by file ending here (maybe |
okok and then only the decode error remains in the tryexcept |
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this PR should be good to merge as soon as the documentation is added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, I think it's a really important feature to have! I'm sorry I didn't look at it early.
I have comments and docs fixes, but they're mostly pretty minor formatting stuff.
Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
Co-authored-by: Paul O'Leary McCann <polm@dampfkraft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for all your work on this Akos, this will be a great new command to have!
New spacy cli command to make annotating new documents with the a trained pipeline convenient by just running a single command.
Description
Adds a new
spacy cli
command calledapply
that takes a model and a file or directory as input.The file or the files in the directory should be of the following formats:
.spacy
file..jsonl
file where the provided--text-key
is used to find the documents.Given the input file or directory
apply
generates a.spacy
file containing theDoc
objects produced by the model.Types of change
New feature
Checklist