mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-09 16:10:33 +03:00
Update docs [ci skip]
This commit is contained in:
parent
d98ae9d918
commit
406aed78ee
|
@ -831,6 +831,8 @@ so you can compare their results. The following script starts an
|
||||||
argument you can pass in from your `config.yml`: a comma-separated list of paths
|
argument you can pass in from your `config.yml`: a comma-separated list of paths
|
||||||
to load the pipelines from and an example text to use as the default text.
|
to load the pipelines from and an example text to use as the default text.
|
||||||
|
|
||||||
|
<!-- TODO: replace with embed -->
|
||||||
|
|
||||||
```python
|
```python
|
||||||
### scripts/visualize.py
|
### scripts/visualize.py
|
||||||
import spacy_streamlit
|
import spacy_streamlit
|
||||||
|
|
|
@ -683,7 +683,7 @@ You can also implement your own batch size schedule to use during training. The
|
||||||
import spacy
|
import spacy
|
||||||
|
|
||||||
@spacy.registry.schedules("my_custom_schedule.v1")
|
@spacy.registry.schedules("my_custom_schedule.v1")
|
||||||
def my_custom_schedule(start: int = 1, factor: int = 1.001):
|
def my_custom_schedule(start: int = 1, factor: float = 1.001):
|
||||||
while True:
|
while True:
|
||||||
yield start
|
yield start
|
||||||
start = start * factor
|
start = start * factor
|
||||||
|
|
Loading…
Reference in New Issue
Block a user