Merge branch 'master' into spacy.io

This commit is contained in:
Ines Montani 2019-08-19 19:22:19 +02:00
commit 22a31b78d6
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ For details, see the documentation on
| `method` | callable | Set a custom method on the object, for example `span._.compare(other_span)`. |
| `getter` | callable | Getter function that takes the object and returns an attribute value. Is called when the user accesses the `._` attribute. |
| `setter` | callable | Setter function that takes the `Span` and a value, and modifies the object. Is called when the user writes to the `Span._` attribute. |
| `force` | bool | Force overwriting existing attribute. |
## Span.get_extension {#get_extension tag="classmethod" new="2"}

View File

@ -63,6 +63,7 @@ For details, see the documentation on
| `method` | callable | Set a custom method on the object, for example `token._.compare(other_token)`. |
| `getter` | callable | Getter function that takes the object and returns an attribute value. Is called when the user accesses the `._` attribute. |
| `setter` | callable | Setter function that takes the `Token` and a value, and modifies the object. Is called when the user writes to the `Token._` attribute. |
| `force` | bool | Force overwriting existing attribute. |
## Token.get_extension {#get_extension tag="classmethod" new="2"}