Skip to content
Discussion options

You must be logged in to vote

Hi @jamnicki , I'm curious as to why you're overwriting spans in the Example object, are you trying to train using a custom training loop, etc.? But to answer your question, you should only update the reference attribute of your Example object (Example.reference is a Doc).

example.reference.spans[spans_key] = span_group

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jamnicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation and website
2 participants