mirror of
https://github.com/explosion/spaCy.git
synced 2025-10-30 07:27:28 +03:00
* 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> |
||
|---|---|---|
| .. | ||
| architectures.md | ||
| attributeruler.md | ||
| cli.md | ||
| corpus.md | ||
| cython-classes.md | ||
| cython-structs.md | ||
| cython.md | ||
| data-formats.md | ||
| dependencymatcher.md | ||
| dependencyparser.md | ||
| doc.md | ||
| docbin.md | ||
| entitylinker.md | ||
| entityrecognizer.md | ||
| entityruler.md | ||
| example.md | ||
| index.md | ||
| kb.md | ||
| language.md | ||
| legacy.md | ||
| lemmatizer.md | ||
| lexeme.md | ||
| lookups.md | ||
| matcher.md | ||
| morphologizer.md | ||
| morphology.md | ||
| phrasematcher.md | ||
| pipe.md | ||
| pipeline-functions.md | ||
| scorer.md | ||
| sentencerecognizer.md | ||
| sentencizer.md | ||
| span.md | ||
| spancategorizer.md | ||
| spangroup.md | ||
| stringstore.md | ||
| tagger.md | ||
| textcategorizer.md | ||
| tok2vec.md | ||
| token.md | ||
| tokenizer.md | ||
| top-level.md | ||
| transformer.md | ||
| vectors.md | ||
| vocab.md | ||