Skip to content
Discussion options

You must be logged in to vote

Something is going wrong with the heads set in the split which causes problems for the following merge. It looks like the split introduces a cycle in the dependency tree and also several internal edges labeled ROOT, which probably isn't what you intended.

I think you have a cycle between "Quand", "de", and "police". You can check for cycles with spacy.pipeline._parser_internals.nonproj.contains_cycle, which takes a list of the token.head.i values for a doc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@swati1411
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
feat / doc Feature: Doc, Span and Token objects
2 participants
Converted from issue

This discussion was converted from issue #9836 on December 08, 2021 14:31.