Skip to content
Discussion options

You must be logged in to vote

When you create a span using the Span(...) constructor, the indices are token indices, not character indices like in Doc.char_span. This is why the Doc in your example is reported as having length 6.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Comment options

You must be logged in to vote
2 replies
@grinay
Comment options

@polm
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
2 participants
Converted from issue

This discussion was converted from issue #11323 on August 17, 2022 05:13.