spaCy/spacy/tokens
Adriane Boyd 31cd5141bd TEST: Doc.ents as SpanGroup
Overview of required changes to support `SpanGroup` rather than
`Tuple[Span]`:

* implement slice for `SpanGroup`
* return `SpanGroup` for `SpanGroup + x` or `x + SpanGroup` rather than
refusing to concatenate (currently without good error handling)

Side effects:

* if appending to `Doc.ents`, only `Iterable[Span]` is supported rather
than other formats like raw entity tuples from matcher results, but you
can still assign mixed data in any of the currently supported formats to
`Doc.ents`
  * for the `Matcher` case, `as_spans` provides a good alternative
2023-03-07 16:26:02 +01:00
..
__init__.pxd * Break up tokens.pyx into tokens/doc.pyx, tokens/token.pyx, tokens/spans.pyx 2015-07-13 20:20:58 +02:00
__init__.py Make stable private modules public and adjust names (#11353) 2022-08-30 13:56:35 +02:00
doc_bin.py Make stable private modules public and adjust names (#11353) 2022-08-30 13:56:35 +02:00
doc.pxd Remove sentiment extension (#11722) 2022-11-23 13:09:32 +01:00
doc.pyi TEST: Doc.ents as SpanGroup 2023-03-07 16:26:02 +01:00
doc.pyx TEST: Doc.ents as SpanGroup 2023-03-07 16:26:02 +01:00
graph.pxd Add SpanGroup and Graph container types to represent arbitrary annotations (#6696) 2021-01-14 17:30:41 +11:00
graph.pyx StringStore refactoring (#11344) 2022-10-06 10:51:06 +02:00
morphanalysis.pxd Morphology/Morphologizer optimizations and refactoring (#11024) 2022-07-15 11:14:08 +02:00
morphanalysis.pyi 🏷 Add Mypy check to CI and ignore all existing Mypy errors (#9167) 2021-10-14 15:21:40 +02:00
morphanalysis.pyx Morphology/Morphologizer optimizations and refactoring (#11024) 2022-07-15 11:14:08 +02:00
retokenizer.pyi Make stable private modules public and adjust names (#11353) 2022-08-30 13:56:35 +02:00
retokenizer.pyx Refactor lexeme mem passing (#12125) 2023-01-25 12:50:21 +09:00
span_group.pxd Span/SpanGroup: wrap SpanC in shared_ptr (#9869) 2022-01-12 13:38:52 +01:00
span_group.pyi TEST: Doc.ents as SpanGroup 2023-03-07 16:26:02 +01:00
span_group.pyx TEST: Doc.ents as SpanGroup 2023-03-07 16:26:02 +01:00
span_groups.py Merge branch 'develop' into merge-develop-into-v4 2022-09-07 11:35:47 +02:00
span.pxd Span/SpanGroup: wrap SpanC in shared_ptr (#9869) 2022-01-12 13:38:52 +01:00
span.pyi Return Tuple[Span] for all Doc/Span attrs that provide spans (#12288) 2023-03-01 16:00:02 +01:00
span.pyx Return Tuple[Span] for all Doc/Span attrs that provide spans (#12288) 2023-03-01 16:00:02 +01:00
token.pxd cleanup 2021-01-13 14:20:05 +01:00
token.pyi Remove sentiment extension (#11722) 2022-11-23 13:09:32 +01:00
token.pyx Remove backoff from .vector to .tensor (#12292) 2023-02-23 11:36:50 +01:00
underscore.py Custom extensions for spans with equal boundaries (#11429) 2022-12-12 08:55:53 +01:00