Displacy render: Spans are overlapped when rendered. #13056
Labels
bug
Bugs and behaviour differing from documentation
feat / visualizers
Feature: Built-in displaCy and other visualizers
Hello,
I'm trying to display spans with displacy render where I built the span manually.
Several spans can be overlapped.
Sometimes when there are more than 3 spans overlapping, the rendering fails to render properly.
In the following image spans on the second line have 1 token in common so the render should have done 3 lines, instead it overlapped them.
![image](https://private-user-images.githubusercontent.com/74212431/273943900-4856e75c-d6ef-46ff-aeb3-7578eb166186.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODk5NzIsIm5iZiI6MTczOTY4OTY3MiwicGF0aCI6Ii83NDIxMjQzMS8yNzM5NDM5MDAtNDg1NmU3NWMtZDZlZi00NmZmLWFlYjMtNzU3OGViMTY2MTg2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3MDc1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk4M2YzMDkzMTAzMmE2NWI4ZTNlY2Y0MTE1ZmViMDllMDg3NDcyNGIwNjk3YjJiY2JlMzBlMGMyNjMyOWMzNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.h9xKq6V9owHpTSABVIhKPRDPOC95uN4jVexr6v3dCz0)
How to reproduce the behaviour
Your Environment
Thanks for your help :)
The text was updated successfully, but these errors were encountered: