spaCy/website/docs/api
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
..
architectures.md Rename Transformer listener (#6001) 2020-08-31 12:41:39 +02:00
attributeruler.md Update docs [ci skip] 2020-08-29 18:43:19 +02:00
cli.md Add more info to debug config 2020-08-27 18:17:58 +02:00
corpus.md Update Thinc and config variables 2020-08-19 19:46:12 +02:00
cython-classes.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
cython-structs.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
cython.md Update WIP 2020-07-06 22:22:37 +02:00
data-formats.md Update docs 2020-08-29 12:36:05 +02:00
dependencymatcher.md Officially support DependencyMatcher 2020-09-02 17:45:29 +02:00
dependencyparser.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
doc.md add version 2020-08-19 19:58:45 +02:00
docbin.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
entitylinker.md fix 2 more API lines 2020-08-19 14:55:32 +02:00
entityrecognizer.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
entityruler.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
example.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
index.md Update v3 docs 2020-07-03 16:48:21 +02:00
kb.md Define candidate generator in EL config (#5876) 2020-08-18 16:10:36 +02:00
language.md Update docs 2020-08-29 12:36:05 +02:00
lemmatizer.md Update usage docs for lemmatization and morphology 2020-08-29 15:56:50 +02:00
lexeme.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
lookups.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
matcher.md Deprecate (Phrase)Matcher.pipe 2020-08-31 17:01:24 +02:00
morphologizer.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
morphology.md Update docs [ci skip] 2020-08-21 13:22:59 +02:00
phrasematcher.md Deprecate (Phrase)Matcher.pipe 2020-08-31 17:01:24 +02:00
pipe.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
pipeline-functions.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
scorer.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
sentencerecognizer.md Update sentence segmentation usage docs 2020-08-28 10:58:16 +02:00
sentencizer.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
span.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
stringstore.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
tagger.md Add AttributeRuler.score (#5963) 2020-08-26 15:39:30 +02:00
textcategorizer.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
tok2vec.md Update docs and consistency [ci skip] 2020-08-18 14:39:40 +02:00
token.md Update docs [ci skip] 2020-08-21 13:22:59 +02:00
tokenizer.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
top-level.md Update docs [ci skip] 2020-08-31 17:06:33 +02:00
transformer.md small fixes 2020-08-31 14:46:00 +02:00
vectors.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00
vocab.md Update docs, types and API consistency 2020-08-17 16:45:24 +02:00