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