mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Fix docs example (see #2728)
This commit is contained in:
parent
0fc908d7a5
commit
250e88ef55
|
@ -107,8 +107,8 @@ details and examples.
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
> from spacy.attrs import ORTH, LEMMA
|
> from spacy.attrs import ORTH, LEMMA
|
||||||
> case = [{"don't": [{ORTH: "do"}, {ORTH: "n't", LEMMA: "not"}]}]
|
> case = [{ORTH: "do"}, {ORTH: "n't", LEMMA: "not"}]
|
||||||
> tokenizer.add_special_case(case)
|
> tokenizer.add_special_case("don't", case)
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user