Skip to content

Spacy NER during Inference #9372

Discussion options

You must be logged in to vote

Hi @baivadash! First off, does the order matter in your models, or are there any inter-model dependencies in your inference pipeline?

  • If yes, then they have to be run sequentially to respect those dependencies.
  • If no, and they're completely independent, you can try running them in separate processes. Check-out libraries like joblib. It wraps multiprocessing, and allows you to choose other backends.

Later on, you can combine your annotations using a SpanGroup (maybe using SpanGroup.append or .extend) or take advantage of span categorization using SpanCategorizer. Here's a good intro on how span categorization relates to NER.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@baivabdash
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer perf / speed Performance: speed scaling Scaling, serving and parallelizing spaCy
2 participants