Auto-format and remove 2.3 feature [ci skip]

This commit is contained in:
Ines Montani 2020-05-22 13:50:30 +02:00
parent 8cb16c7120
commit 65c7e82de2
1 changed files with 67 additions and 83 deletions

View File

@ -351,25 +351,9 @@ property to `0` for the first word of the document.
- assert doc[4].sent_start == 1
+ assert doc[4].is_sent_start == True
```
</Infobox>
## Token.is_sent_end {#is_sent_end tag="property" new="2"}
A boolean value indicating whether the token ends a sentence. `None` if
unknown. Defaults to `True` for the last token in the `Doc`.
> #### Example
>
> ```python
> doc = nlp("Give it back! He pleaded.")
> assert doc[3].is_sent_end
> assert not doc[4].is_sent_end
> ```
| Name | Type | Description |
| ----------- | ---- | ------------------------------------ |
| **RETURNS** | bool | Whether the token ends a sentence. |
## Token.has_vector {#has_vector tag="property" model="vectors"}
A boolean value indicating whether a word vector is associated with the token.
@ -425,7 +409,7 @@ The L2 norm of the token's vector representation.
## Attributes {#attributes}
| Name | Type | Description |
| -------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `doc` | `Doc` | The parent document. |
| `sent` <Tag variant="new">2.0.12</Tag> | `Span` | The sentence span that this token is a part of. |
| `text` | unicode | Verbatim text content. |