spaCy/website/docs/images
Lj Miranda a79cd3542b
Add displacy support for overlapping Spans (#10332)
* Fix docstring for EntityRenderer

* Add warning in displacy if doc.spans are empty

* Implement parse_spans converter

One notable change here is that the default spans_key is sc, and
it's set by the user through the options.

* Implement SpanRenderer

Here, I implemented a SpanRenderer that looks similar to the
EntityRenderer except for some templates.  The spans_key, by default, is
set to sc, but can be configured in the options (see parse_spans). The
way I rendered these spans is per-token, i.e., I first check if each
token (1) belongs to a given span type and (2) a starting token of a
given span type. Once I have this information, I render them into the
markup.

* Fix mypy issues on typing

* Add tests for displacy spans support

* Update colors from RGB to hex

Co-authored-by: Ines Montani <ines@ines.io>

* Remove unnecessary CSS properties

* Add documentation for website

* Remove unnecesasry scripts

* Update wording on the documentation

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Put typing dependency on top of file

* Put back z-index so that spans overlap properly

* Make warning more explicit for spans_key

Co-authored-by: Ines Montani <ines@ines.io>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2022-03-16 18:14:34 +01:00
..
architecture.svg Update docs [ci skip] 2020-08-10 23:41:09 +02:00
cli_init_fill-config_diff.jpg Add diff example to docs [ci skip] 2020-08-26 15:57:54 +02:00
course.jpg Add course to 101 2019-04-19 15:59:51 +02:00
dep-match-diagram.svg WIP: update docs [ci skip] 2020-09-04 16:30:31 +02:00
displacy_jupyter.jpg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-compact.svg Fix displaCy visualizations in docs (closes #3357) [ci skip] 2019-03-06 13:20:44 +01:00
displacy-custom-parser.svg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-dep-founded.html WIP: update docs [ci skip] 2020-09-04 16:30:31 +02:00
displacy-ent-custom.html Remove box-decoration-break from entities in displacy (#4564) 2019-10-31 15:09:43 +01:00
displacy-ent-snek.html Remove box-decoration-break from entities in displacy (#4564) 2019-10-31 15:09:43 +01:00
displacy-ent1.html Remove box-decoration-break from entities in displacy (#4564) 2019-10-31 15:09:43 +01:00
displacy-ent2.html Remove box-decoration-break from entities in displacy (#4564) 2019-10-31 15:09:43 +01:00
displacy-long.html Fix displaCy visualizations in docs (closes #3357) [ci skip] 2019-03-06 13:20:44 +01:00
displacy-long2.html 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-model-rules.svg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-model-rules2.svg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-small.svg Fix displaCy visualizations in docs (closes #3357) [ci skip] 2019-03-06 13:20:44 +01:00
displacy-span-custom.html Add displacy support for overlapping Spans (#10332) 2022-03-16 18:14:34 +01:00
displacy-span.html Add displacy support for overlapping Spans (#10332) 2022-03-16 18:14:34 +01:00
displacy.svg Fix displaCy visualizations in docs (closes #3357) [ci skip] 2019-03-06 13:20:44 +01:00
huggingface_hub.jpg Update with HF hub integration [ci skip] 2021-07-06 19:30:59 +10:00
lifecycle.svg Update docs [ci skip] 2020-09-30 15:16:00 +02:00
matcher-demo.jpg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
pipeline_transformer.svg Update docs [ci skip] 2020-07-29 18:44:10 +02:00
pipeline-design.svg Update pipeline design docs [ci skip] 2021-04-06 14:13:22 +10:00
pipeline.svg Update docs [ci skip] 2020-07-27 00:29:45 +02:00
prodigy_overview.jpg Update docs [ci skip] 2020-09-12 17:05:10 +02:00
prodigy_spans-manual.jpg Update details [ci skip] 2021-06-23 13:05:56 +10:00
prodigy_train_curve.jpg Update Prodigy project template for v1.11 [ci skip] 2021-08-12 13:46:20 +10:00
prodigy.jpg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
project_document.jpg Tidy up and add docs [ci skip] 2020-08-26 13:24:55 +02:00
projects.png Update docs [ci skip] 2020-09-12 17:05:10 +02:00
projects.svg Add icon credit [ci skip] 2020-08-24 10:28:15 +02:00
sense2vec.jpg Update vectors and similarity docs [ci skip] 2020-08-19 21:18:26 +02:00
spacy-ray.svg Update docs [ci skip] 2020-09-13 22:30:33 +02:00
spacy-streamlit.png Start updating website for v3 [ci skip] 2020-07-01 21:26:39 +02:00
spacy-tailored-pipelines_wide.png Add spaCy Tailored Pipelines 2022-02-08 11:46:42 +01:00
thinc_mypy.jpg Update docs [ci skip] 2020-08-21 20:02:18 +02:00
tok2vec-listener.svg Update docs and consistency [ci skip] 2020-08-18 14:39:40 +02:00
tok2vec.svg Update docs and consistency [ci skip] 2020-08-18 14:39:40 +02:00
tokenization.svg Update graphics and 101 [ci skip] 2020-08-07 17:14:13 +02:00
trainable_component.svg Update docs [ci skip] 2020-10-06 14:15:08 +02:00
training.svg Update docs [ci skip] 2020-07-27 00:29:45 +02:00
vocab_stringstore.svg Update graphics and 101 [ci skip] 2020-08-07 17:14:13 +02:00
wandb1.jpg Update docs [ci skip] 2020-09-12 17:05:10 +02:00
wandb2.jpg Update docs [ci skip] 2020-09-12 17:05:10 +02:00