mirror of
https://github.com/explosion/spaCy.git
synced 2025-10-30 07:27:28 +03:00
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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_dependency_matcher.py | ||
| test_levenshtein.py | ||
| test_matcher_api.py | ||
| test_matcher_logic.py | ||
| test_pattern_validation.py | ||
| test_phrase_matcher.py | ||