Skip to content
Discussion options

You must be logged in to vote

When providing sample code, please provide an example that we can run in isolation to confirm what's happening. It's best to provide code pasted as text in your question. If you prefer to work in notebooks, you can supply those as a gist, or by linking to a Github repo. Please do not post PDFs of code, which are hard to read and cannot be executed.

As it is, it's very hard to see what's going on because you use several functions without including their definitions. I can kind of guess what they're doing, but it's not clear.

It looks like the problem is that you are accessing the same token in two different ways and it's not equal. If it's the same token in the same Doc object, then it sho…

Replies: 2 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
3 replies
@pipkin45
Comment options

@pipkin45
Comment options

@polm
Comment options

Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / doc Feature: Doc, Span and Token objects
4 participants
Converted from issue

This discussion was converted from issue #11752 on November 07, 2022 04:34.