Closed thomasthiebaud closed 4 years ago
In general, an nlp
object is a processing pipeline specific to one language. Its components (syntax parsing or named entity recognition for instance) would also be language-dependent. So I don't see a straightforward way to accomplish what you'd want. nlp.pipe
can't support multiple languages at the same time, as inherently nlp
only supports one at a time.
I think preprocessing and filtering the texts, as in your example snippet, would be the best way to go.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Is it possible to support multiple language with
nlp.pipe
.For example
If I'm receiving a list of text and want to process each element by a different model, I have to do something like that
Is there a more idiomatic way to write that? Something like
spacy.pipes
? Or is this the way to go? Could it be supported by spacy?