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

how to use nlp.pipe #7

Open
xcwill opened this issue Sep 13, 2021 · 2 comments
Open

how to use nlp.pipe #7

xcwill opened this issue Sep 13, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@xcwill
Copy link

xcwill commented Sep 13, 2021

Thanks for this useful tool, but I want to use multi-processors to accelerate the NER and ETL. I found spacy provide an NLP.pipe method, it's not compatible with your pipeline. My question is how to use NLP.pipe in your pipeline.

@MartinoMensio
Copy link
Collaborator

Hi @xcwill ,
I will need to look into the implementation of nlp.pipe. At the moment I know it exists but I'm not familiar with implementing it.
I will keep you updated as soon as I have more info.

Best,
Martino

@MartinoMensio MartinoMensio added the enhancement New feature or request label Feb 7, 2023
@MartinoMensio
Copy link
Collaborator

Hi @xcwill ,
I am working on a multiprocessing enhancement, that should support the nlp.pipe method.

Could you try to install the multiprocessing branch and let me know if this would work in your case?

pip install git+https://github.com/egerber/spaCy-entity-linker@multiprocessing

The only limitation is that you cannot use anymore the .get_span() or read the .span property of the EntityElement class. I'm trying to find a workaround for it.

This issue is linked strictly with #23.

Best,
Martino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants