mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
entity types for colors should be in uppercase (#3599)
although the text indicates the entity types should be in lowercase, the sample code shows uppercase, which is the correct format.
This commit is contained in:
parent
57d4a8bf3d
commit
f2f2df6e78
|
@ -136,7 +136,7 @@ The entity visualizer lets you customize the following `options`:
|
|||
| Argument | Type | Description | Default |
|
||||
| -------- | ---- | ------------------------------------------------------------------------------------- | ------- |
|
||||
| `ents` | list | Entity types to highlight (`None` for all types). | `None` |
|
||||
| `colors` | dict | Color overrides. Entity types in lowercase should be mapped to color names or values. | `{}` |
|
||||
| `colors` | dict | Color overrides. Entity types in uppercase should be mapped to color names or values. | `{}` |
|
||||
|
||||
If you specify a list of `ents`, only those entity types will be rendered – for
|
||||
example, you can choose to display `PERSON` entities. Internally, the visualizer
|
||||
|
|
Loading…
Reference in New Issue
Block a user