mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
Use warning infobox.
This commit is contained in:
parent
e175726fcc
commit
cf5a99be41
|
@ -89,9 +89,11 @@ architectures and their arguments and hyperparameters.
|
||||||
| `negative_weight` <Tag variant="new">3.5.1</Tag> | Multiplier for the loss terms. It can be used to downweight the negative samples if there are too many. It is only used when `add_negative_label` is `True`. Defaults to `1.0`. ~~float~~ |
|
| `negative_weight` <Tag variant="new">3.5.1</Tag> | Multiplier for the loss terms. It can be used to downweight the negative samples if there are too many. It is only used when `add_negative_label` is `True`. Defaults to `1.0`. ~~float~~ |
|
||||||
| `allow_overlap` <Tag variant="new">3.5.1</Tag> | If `True`, the data is assumed to contain overlapping spans. It is only available when `max_positive` is exactly 1. Defaults to `True`. ~~bool~~ |
|
| `allow_overlap` <Tag variant="new">3.5.1</Tag> | If `True`, the data is assumed to contain overlapping spans. It is only available when `max_positive` is exactly 1. Defaults to `True`. ~~bool~~ |
|
||||||
|
|
||||||
> ⚠️ Caution: if you set a non-default value for `spans_key`, you'll have to
|
<Infobox variant="warning">
|
||||||
> update `[training.score_weights]` as well so that weights are computed
|
|
||||||
> properly. E. g. for `span_key == "myspankey"`, include this in your config:
|
> If you set a non-default value for `spans_key`, you'll have to update
|
||||||
|
> `[training.score_weights]` as well so that weights are computed properly. E.
|
||||||
|
> g. for `span_key == "myspankey"`, include this in your config:
|
||||||
>
|
>
|
||||||
> ```ini
|
> ```ini
|
||||||
> [training.score_weights]
|
> [training.score_weights]
|
||||||
|
@ -100,6 +102,8 @@ architectures and their arguments and hyperparameters.
|
||||||
> spans_myspankey_r = 0.0
|
> spans_myspankey_r = 0.0
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
</Infobox>
|
||||||
|
|
||||||
```python
|
```python
|
||||||
%%GITHUB_SPACY/spacy/pipeline/spancat.py
|
%%GITHUB_SPACY/spacy/pipeline/spancat.py
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user