spaCy/website/docs/usage
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
..
101 Fix UD POS docs links (fix #9013) (#9407) 2021-10-11 11:51:19 +02:00
_benchmarks-models.md final 3.0 benchmark numbers 2021-02-09 21:28:33 +01:00
embeddings-transformers.md Various install docs updates (#10487) 2022-03-15 11:12:50 +01:00
facts-figures.md final 3.0 benchmark numbers 2021-02-09 21:28:33 +01:00
index.md Docs for thinc-apple-ops (#9549) 2021-10-29 10:35:31 +02:00
layers-architectures.md 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
linguistic-features.md Fix initial special cases for Tokenizer.explain (#10460) 2022-03-11 10:50:47 +01:00
models.md Add Finnish, Korean, and Swedish models and Korean support notes (#10355) 2022-03-07 17:03:45 +01:00
processing-pipelines.md Add `path.mkdir` to custom component examples of `to_disk` (#10348) 2022-03-08 16:04:10 +01:00
projects.md YAML multiline tip for project.yml files (#10187) 2022-02-08 08:35:09 +01:00
rule-based-matching.md matcher doc corrections (#9115) 2021-09-02 09:26:33 +02:00
saving-loading.md Add `path.mkdir` to custom component examples of `to_disk` (#10348) 2022-03-08 16:04:10 +01:00
spacy-101.md Merge branch 'master' into develop 2020-12-11 13:44:41 +11:00
training.md Merge remote-tracking branch 'upstream/master' into chore/update-develop-from-master-v3.2-3 2021-10-29 12:18:15 +02:00
v2-1.md Merge branch 'spacy.io' [ci skip] 2021-03-06 17:38:54 +11:00
v2-2.md Update v3 docs [ci skip] 2020-07-05 16:11:16 +02:00
v2-3.md Merge branch 'spacy.io' [ci skip] 2021-03-06 17:38:54 +11:00
v2.md Merge branch 'spacy.io' [ci skip] 2021-03-06 17:38:54 +11:00
v3-1.md Update v3.1 usage docs 2021-07-07 08:43:33 +02:00
v3-2.md Update Catalan acknowledgements for v3.2 (#9763) 2021-11-29 14:14:21 +01:00
v3.md Update website/docs/usage/v3.md 2021-07-29 14:56:56 +09:00
visualizers.md Add displacy support for overlapping Spans (#10332) 2022-03-16 18:14:34 +01:00