mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +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 |
||
---|---|---|
.. | ||
101 | ||
_benchmarks-choi.md | ||
embeddings-transformers.md | ||
facts-figures.md | ||
index.md | ||
layers-architectures.md | ||
linguistic-features.md | ||
models.md | ||
processing-pipelines.md | ||
projects.md | ||
rule-based-matching.md | ||
saving-loading.md | ||
spacy-101.md | ||
training.md | ||
v2-1.md | ||
v2-2.md | ||
v2-3.md | ||
v2.md | ||
v3.md | ||
visualizers.md |