Update colors entry points docs [ci skip]

This commit is contained in:
Ines Montani 2019-09-12 12:59:10 +02:00
parent 7b59a919e6
commit e7c20ad1d2
1 changed files with 2 additions and 2 deletions

View File

@ -491,13 +491,13 @@ SnekLanguage = get_lang_class("snk")
nlp = SnekLanguage()
```
### Custom displaCy colors via entry points {#entry-points-displacy}
### Custom displaCy colors via entry points {#entry-points-displacy new="2.2"}
If you're training a named entity recognition model for a custom domain, you may
end up training different labels that don't have pre-defined colors in the
[`displacy` visualizer](/usage/visualizers#ent). The `spacy_displacy_colors`
entry point lets you define a dictionary of entity labels mapped to their color
values. It's added to the existing pre-defined colors and can also overwrite
values. It's added to the pre-defined colors and can also overwrite
existing values.
> #### Domain-specific NER labels