mirror of
https://github.com/explosion/spaCy.git
synced 2025-10-27 22:21:08 +03:00
* Added new convenience cython functions to SpanGroup to avoid unnecessary allocation/deallocation of objects * Replaced sorting in has_overlap with C++ for efficiency. Also, added a test for has_overlap * Added a method to efficiently merge SpanGroups * Added __delitem__, __add__ and __iadd__. Also, allowed to pass span lists to merge function. Replaced extend() body with call to merge * Renamed merge to concat and added missing things to documentation * Added operator+ and operator += in the documentation * Added a test for Doc deallocation * Update spacy/tokens/span_group.pyx * Updated SpanGroup tests to use new span list comparison function rather than assert_span_list_equal, eliminating the need to have a separate assert_not_equal fnction * Fixed typos in SpanGroup documentation Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Minor changes requested by Sofie: rearranged import statements. Added new=3.2.1 tag to SpanGroup.__setitem__ documentation * SpanGroup: moved repetitive list index check/adjustment in a separate function * Turn off formatting that hurts readability spacy/tests/doc/test_span_group.py Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Remove formatting that hurts readability spacy/tests/doc/test_span_group.py Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Turn off formatting that hurts readability in spacy/tests/doc/test_span_group.py Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Support more internal methods for SpanGroup Add support for: * `__setitem__` * `__delitem__` * `__iadd__`: for `SpanGroup` or `Iterable[Span]` * `__add__`: for `SpanGroup` only Adapted from #9698 with the scope limited to the magic methods. * Use v3.3 as new version in docs * Add new tag to SpanGroup.copy in API docs * Remove duplicate import * Apply suggestions from code review Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Remaining suggestions and formatting Co-authored-by: nrodnova <nrodnova@hotmail.com> Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> Co-authored-by: Natalia Rodnova <4512370+nrodnova@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 | ||
| edittreelemmatizer.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 | ||