Fix docs example (see #2728)

This commit is contained in:
Ines Montani 2019-02-21 14:22:06 +01:00
parent 0fc908d7a5
commit 250e88ef55

View File

@ -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 |