spaCy/website/docs/usage
Adriane Boyd 960d9cfadc Officially support DependencyMatcher
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
2020-09-02 17:45:29 +02:00
..
101 Update docs [ci skip] 2020-08-29 18:43:19 +02:00
_benchmarks-choi.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
embeddings-transformers.md Add todos [ci skip] 2020-09-01 14:04:36 +02:00
facts-figures.md Remove old sections [ci skip] (closes #4961) 2020-02-03 13:10:46 +01:00
index.md Update usage docs for lemmatization and morphology 2020-08-29 15:56:50 +02:00
layers-architectures.md Update docs [ci skip] 2020-08-22 17:15:05 +02:00
linguistic-features.md Update docs [ci skip] 2020-08-29 18:43:19 +02:00
models.md Update docs [ci skip] 2020-08-19 00:28:37 +02:00
processing-pipelines.md Merge branch 'develop' into docs/morph-usage-v3 2020-08-29 16:00:50 +02:00
projects.md Support ignore marker in project document [ci skip] 2020-09-01 12:49:04 +02:00
rule-based-matching.md Officially support DependencyMatcher 2020-09-02 17:45:29 +02:00
saving-loading.md Update formatting [ci skip] 2020-08-23 11:57:56 +02:00
spacy-101.md Update docs [ci skip] 2020-08-19 00:28:37 +02:00
training.md fix config example [ci skip] 2020-08-31 17:40:04 +02:00
v2-1.md Remove u-strings and fix formatting [ci skip] 2019-09-12 16:11:15 +02:00
v2-2.md Update v3 docs [ci skip] 2020-07-05 16:11:16 +02:00
v2-3.md Extend v2.3 migration guide (#5653) 2020-06-26 14:13:01 +02:00
v2.md Update docs [ci skip] 2020-08-18 00:49:19 +02:00
v3.md Officially support DependencyMatcher 2020-09-02 17:45:29 +02:00
visualizers.md Adjust label casing in displaCy NER visualizer (resolves #4866) 2020-08-21 11:51:31 +02:00