From b0a28fd0de7543a8b2b8e876e6f1e7804650dd1e Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Tue, 20 Aug 2019 21:01:43 +1000 Subject: [PATCH 1/2] fix PhraseMatcher link typo (#4150) /api/phtasematcher -> /api/phrasematcher --- website/docs/api/entityruler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/entityruler.md b/website/docs/api/entityruler.md index 46dbb3d1d..5e4971ac3 100644 --- a/website/docs/api/entityruler.md +++ b/website/docs/api/entityruler.md @@ -34,7 +34,7 @@ be a token pattern (list) or a phrase pattern (string). For example: | --------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `nlp` | `Language` | The shared nlp object to pass the vocab to the matchers and process phrase patterns. | | `patterns` | iterable | Optional patterns to load in. | -| `phrase_matcher_attr` | int / unicode | Optional attr to pass to the internal [`PhraseMatcher`](/api/phtasematcher). defaults to `None` | +| `phrase_matcher_attr` | int / unicode | Optional attr to pass to the internal [`PhraseMatcher`](/api/phrasematcher). defaults to `None` | | `validate` | bool | Whether patterns should be validated, passed to Matcher and PhraseMatcher as `validate`. Defaults to `False`. | | `overwrite_ents` | bool | If existing entities are present, e.g. entities added by the model, overwrite them by matches if necessary. Defaults to `False`. | | `**cfg` | - | Other config parameters. If pipeline component is loaded as part of a model pipeline, this will include all keyword arguments passed to `spacy.load`. | From fe230c877688e3279b139392d7635244c9821bb1 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 20 Aug 2019 13:02:05 +0200 Subject: [PATCH 2/2] Fix typo [ci skip] --- website/docs/api/entityruler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/entityruler.md b/website/docs/api/entityruler.md index 5e4971ac3..006ba90e6 100644 --- a/website/docs/api/entityruler.md +++ b/website/docs/api/entityruler.md @@ -213,6 +213,6 @@ Get all patterns that were added to the entity ruler. | Name | Type | Description | | ----------------- | ------------------------------------- | ---------------------------------------------------------------- | | `matcher` | [`Matcher`](/api/matcher) | The underlying matcher used to process token patterns. | -| `phrase_matcher` | [`PhraseMatcher`](/api/phtasematcher) | The underlying phrase matcher, used to process phrase patterns. | +| `phrase_matcher` | [`PhraseMatcher`](/api/phrasematcher) | The underlying phrase matcher, used to process phrase patterns. | | `token_patterns` | dict | The token patterns present in the entity ruler, keyed by label. | | `phrase_patterns` | dict | The phrase patterns present in the entity ruler, keyed by label. |