Skip to content
Discussion options

You must be logged in to vote

I've ended up creating a new span

span = Span(doc, span.start, span.end, span_id="NEW_LABEL", label=span.label_)
doc.ents = [span]

which seems to work as expected

Replies: 2 comments 5 replies

Comment options

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

Answer selected by NixBiks
Comment options

You must be logged in to vote
4 replies
@NixBiks
Comment options

@NixBiks
Comment options

@adrianeboyd
Comment options

@NixBiks
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / doc Feature: Doc, Span and Token objects
3 participants