Skip to content
Discussion options

You must be logged in to vote

Note that as mentioned in the docs, if your span has leading or trailing whitespace that's a problem. The docs don't explicitly state that in that particular section, but spaCy doesn't represent entities that start or end with whitespace. (If you have an example where starting or ending whitespace is significant let us know, I've never seen one before.) That's why the sample code only lets you find token boundaries (non-whitespace).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation and website feat / matcher Feature: Token, phrase and dependency matcher
2 participants
Converted from issue

This discussion was converted from issue #11306 on August 15, 2022 09:05.