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
cli_init_fill-config_diff.jpg
course.jpg
dep-match-diagram.svg
displacy-compact.svg
displacy-custom-parser.svg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-dep-founded.html
displacy-ent-custom.html
displacy-ent-snek.html
displacy-ent1.html Remove box-decoration-break from entities in displacy (#4564) 2019-10-31 15:09:43 +01:00
displacy-ent2.html
displacy-long.html
displacy-long2.html 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-model-rules.svg
displacy-model-rules2.svg 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
displacy-small.svg
displacy-span-custom.html
displacy-span.html
displacy.svg
displacy_jupyter.jpg
huggingface_hub.jpg
lifecycle.svg
matcher-demo.jpg
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
pipeline_transformer.svg
prodigy.jpg
prodigy_overview.jpg
prodigy_spans-manual.jpg Update details [ci skip] 2021-06-23 13:05:56 +10:00
prodigy_train_curve.jpg
project_document.jpg
projects.png
projects.svg
sense2vec.jpg
spacy-ray.svg
spacy-streamlit.png
spacy-tailored-pipelines_wide.png
thinc_mypy.jpg
tok2vec-listener.svg
tok2vec.svg
tokenization.svg
trainable_component.svg
training.svg Update docs [ci skip] 2020-07-27 00:29:45 +02:00
vocab_stringstore.svg
wandb1.jpg
wandb2.jpg Update docs [ci skip] 2020-09-12 17:05:10 +02:00