mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 19:30:19 +03:00
Improve documentation
This commit is contained in:
parent
35ee80c5e3
commit
ea935a24e3
|
@ -537,13 +537,13 @@ none of them are specified, the whole document is displayed.
|
||||||
> doc.inspect("lemma_", "time", length=20)
|
> doc.inspect("lemma_", "time", length=20)
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `search_attr_name` | The name of an attribute for which to search to determine the sentence at which to begin rendering, e.g. `lemma_`. ~~Optional[str]~~ |
|
| `search_attr_name` | The name of an attribute to search for in order to determine the sentence to render, e.g. `lemma_`. ~~Optional[str]~~ |
|
||||||
| `search_attr_value` | The value of an attribute for which to search to determine the sentence at which to begin rendering, e.g. `give`. ~~Optional[str]~~ |
|
| `search_attr_value` | The value of an attribute to search for in order to determine the sentence to render, e.g. `give`. ~~Optional[str]~~ |
|
||||||
| _keyword-only_ | |
|
| _keyword-only_ | |
|
||||||
| `start_i` | The index at which searching should begin or with whose containing sentence rendering should begin. ~~Optional[int]~~ |
|
| `start_i` | The index at which to begin searching or whose containing sentence to render. ~~Optional[int]~~ |
|
||||||
| `length` | The number of tokens from the start token to the token with whose containing sentence rendering should end. ~~Optional[int]~~ |
|
| `length` | The number of tokens to display with their containing sentences. Can be used in isolation to display a portion at the beginning of a document or in conjunction with the other parameters to display more than one sentence. ~~Optional[int]~~ |
|
||||||
|
|
||||||
## Doc.retokenize {id="retokenize",tag="contextmanager",version="2.1"}
|
## Doc.retokenize {id="retokenize",tag="contextmanager",version="2.1"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user