-
Notifications
You must be signed in to change notification settings - Fork 54
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
feature: implement CreateNlpBatchesFromIndexTask
and BatchNlpTask
#1597
Open
ClemDoum
wants to merge
12
commits into
main
Choose a base branch
from
feature/batch-nlp-task
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClemDoum
force-pushed
the
feature/batch-nlp-task
branch
3 times, most recently
from
November 7, 2024 09:29
5520b8c
to
06941ae
Compare
ClemDoum
force-pushed
the
feature/batch-nlp-task
branch
2 times, most recently
from
November 7, 2024 11:07
70042eb
to
820b524
Compare
ClemDoum
changed the title
feature: implement
feature: implement Nov 7, 2024
BatchEnqueueFromIndexTask.java
CreateNlpBatchesFromIndexTask
and BatchNlpTask
This was referenced Nov 12, 2024
ClemDoum
force-pushed
the
feature/batch-nlp-task
branch
2 times, most recently
from
November 12, 2024 12:19
7c365c8
to
ec856be
Compare
ClemDoum
force-pushed
the
feature/batch-nlp-task
branch
from
November 20, 2024 14:19
d85f65e
to
4c3a08f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TODO
PR description
Implemenent batch processing for NER, this change is made in the context of #1452, as batch processing is necessary for Spacy.
Notes
In this PR we made the choice not to implement
PipelineTask
but in contrast fully rely on the task bus to distribute the batches across workersChanges
datashare-api
Added
Searcher sort(String field, SortOrder order)
method toIndexer.Searcher
to sort search results and be able to return documents grouped by language (to avoid model reload)datashare-app
Added
CreateNlpBatchesFromIndexTask
task which scan the index for document sorted by language. Documents are then added by batch to theBatchNlpTask
queue, where workers will process document to perform NER by batchBatchNlpTask
which consumes document by batches, fetches them from the index and performs the NLP task (NER only)