Is it possible to merge a list of spacy tokens into a doc? #12525
Replies: 2 comments 10 replies
-
Hi! Could you clarify a bit more what you're trying to achieve? As I understand it, you already have a FYI - if you're interested in only keeping the
or, alternatively, you could load it as is and do
which uses a context manager to enable/disable pipeline components on the fly. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to merge tokens into a doc and still maintain their ids? To merge a list of tokens back into Doc this what I tried:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a document which I've tokenized using Spacy tokenizer. I want to apply ner on a sequence of tokens(a section of this document).
Currently I'm creating a doc first and then applying ner
But this is not ideal because I loose their original ids within the document, which is important.
Beta Was this translation helpful? Give feedback.
All reactions