mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
960d9cfadc
Add official support for the `DependencyMatcher`. Redesign the pattern specification. Fix and extend operator implementations. Update API docs and add usage docs. Patterns -------- Refactor pattern structure to: ``` { "LEFT_ID": str, "REL_OP": str, "RIGHT_ID": str, "RIGHT_ATTRS": dict, } ``` The first node contains only `RIGHT_ID` and `RIGHT_ATTRS` and all subsequent nodes contain all four keys. New operators ------------- Because of the way patterns are constructed from left to right, it's helpful to have `follows` operators along with `precedes` operators. Add operators for simple precedes / follows alongside immediate precedes / follows. * `.*`: precedes * `;`: immediately follows * `;*`: follows Operator fixes -------------- * `<` and `<<` do not include the node itself * Fix reversed order for all operators involving linear precedence (`.`, all sibling operators) * Linear precedence operators do not match nodes outside the same parse Additional fixes ---------------- * Use v3 Matcher API * Support `get` and `remove` * Support pickling |
||
---|---|---|
.. | ||
__init__.py | ||
test_issue1-1000.py | ||
test_issue1001-1500.py | ||
test_issue1501-2000.py | ||
test_issue2001-2500.py | ||
test_issue2501-3000.py | ||
test_issue3001-3500.py | ||
test_issue3501-4000.py | ||
test_issue4001-4500.py | ||
test_issue4501-5000.py | ||
test_issue5048.py | ||
test_issue5082.py | ||
test_issue5137.py | ||
test_issue5141.py | ||
test_issue5152.py | ||
test_issue5230.py | ||
test_issue5458.py | ||
test_issue5551.py |