explosion / explosion/spaCy

Displacy visualiser only sometimes shows labels

Open
#12,411 8 comments 0 reactions 0 assignees View on GitHub
feat / visualizers
Dominant language
Python
Stars
33.9k
Forks
4.7k
Avg merge
3m
Merged PRs (30d)
1

Description

In many cases, I do not see the label at the beginning of a span in displacy. This should not be an issue with a particular label since I sometimes see it when using different text examples.

Is there something I should look out for to avoid this?

```
colors = {#omitted in this example}
options = {"spans_key": "sentences", "colors": colors}

displacy.serve(doc, style="span", options=options)
```

![image](https://user-images.githubusercontent.com/56773206/224833403-94a537d6-77c7-4529-8a90-a8e09e9660d9.png)

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.