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 multiprocessing parameters #1521

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

omri374
Copy link
Contributor

@omri374 omri374 commented Feb 3, 2025

Change Description

Allow users to define the number of processes and batch size when running BatchAnalyzerEngine

Issue reference

This PR fixes issue #882, #1461
Is a continuation of #883 which was abandoned

@omri374
Copy link
Contributor Author

omri374 commented Feb 4, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.

Files not reviewed (4)
  • docs/samples/python/batch_processing.ipynb: Evaluated as low risk
  • presidio-analyzer/presidio_analyzer/batch_analyzer_engine.py: Evaluated as low risk
  • presidio-analyzer/presidio_analyzer/nlp_engine/nlp_engine.py: Evaluated as low risk
  • presidio-analyzer/presidio_analyzer/nlp_engine/spacy_nlp_engine.py: Evaluated as low risk
Comments suppressed due to low confidence (1)

presidio-analyzer/tests/test_spacy_nlp_engine.py:27

  • Add a test case to cover the n_process parameter.
nlp_artifacts_batch = spacy_nlp_engine.process_batch(["simple text", "simple text"], language="en")

@omri374
Copy link
Contributor Author

omri374 commented Feb 5, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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