spaCy/spacy/tests/matcher
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__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_dependency_matcher.py Add new REL_OPs: >+, >-, <+, and <- (#12334) 2023-02-28 14:36:33 +01:00
test_levenshtein.py Enable fuzzy text matching in Matcher (#11359) 2023-01-10 10:36:17 +01:00
test_matcher_api.py Merge branch 'copy_master' into copy_v4 2023-01-11 18:40:55 +01:00
test_matcher_logic.py TEST: Doc.ents as SpanGroup 2023-03-07 16:26:02 +01:00
test_pattern_validation.py Addition of min_max quantifier in matcher {n,m} (#10981) 2022-06-30 11:01:58 +02:00
test_phrase_matcher.py Replace EntityRuler with SpanRuler implementation (#11320) 2022-10-24 09:11:35 +02:00