mirror of https://github.com/explosion/spaCy.git
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
|
||||
to load the pipelines from and an example text to use as the default text.
|
||||
|
||||
<!-- TODO: replace with embed -->
|
||||
|
||||
```python
|
||||
### scripts/visualize.py
|
||||
import spacy_streamlit
|
||||
|
|
|
@ -683,7 +683,7 @@ You can also implement your own batch size schedule to use during training. The
|
|||
import spacy
|
||||
|
||||
@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:
|
||||
yield start
|
||||
start = start * factor
|
||||
|
|
Loading…
Reference in New Issue