Feature request: Custom attributes/pipeline for input to Language #2240
kfkelvinng
started this conversation in
New Features & Project Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The custom attributes/pipeline can be useful for following pipeline to obtain relevant context from:
In the process of integrating neuralCoref (single speaker) to spaCy pipeline by redirecting the
doc
on this line in neuralcoref within myPipe.__call__(doc)
.In order to fully integrate neuralCoref (with multiple speakers) into spaCy the pipeline components, Language would need to be able to consume custom attributes for marking speaker to
nlp(text)
. Something along the line of adding extension totext_holder._.speaker={...}
beforenlp(text_holder)
.Since OntoNote5, the speaker is annotated. This could be useful for future CoNLL tasks.
Beta Was this translation helpful? Give feedback.
All reactions