mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 21:54:54 +03:00
prettier
This commit is contained in:
parent
ae451d1047
commit
a9991abf8f
|
@ -475,7 +475,7 @@ report span characteristics such as the average span length and the span (or
|
||||||
span boundary) distinctiveness. The distinctiveness measure shows how different
|
span boundary) distinctiveness. The distinctiveness measure shows how different
|
||||||
the tokens are with respect to the rest of the corpus using the KL-divergence of
|
the tokens are with respect to the rest of the corpus using the KL-divergence of
|
||||||
the token distributions. To learn more, you can check out Papay et al.'s work on
|
the token distributions. To learn more, you can check out Papay et al.'s work on
|
||||||
[*Dissecting Span Identification Tasks with Performance Prediction* (EMNLP 2020)](https://aclanthology.org/2020.emnlp-main.396/).
|
[_Dissecting Span Identification Tasks with Performance Prediction_ (EMNLP 2020)](https://aclanthology.org/2020.emnlp-main.396/).
|
||||||
|
|
||||||
</Infobox>
|
</Infobox>
|
||||||
|
|
||||||
|
@ -1165,13 +1165,14 @@ $ python -m spacy evaluate [model] [data_path] [--output] [--code] [--gold-prepr
|
||||||
|
|
||||||
## apply {#apply new="3.5" tag="command"}
|
## apply {#apply new="3.5" tag="command"}
|
||||||
|
|
||||||
Applies a trained pipeline to data and stores the resulting
|
Applies a trained pipeline to data and stores the resulting annotated documents
|
||||||
annotated documents in a `DocBin`. The input can be a single file
|
in a `DocBin`. The input can be a single file or a directory. The recognized
|
||||||
or a directory. The recognized input formats are:
|
input formats are:
|
||||||
|
|
||||||
1. `.spacy`
|
1. `.spacy`
|
||||||
2. `.jsonl` containing a user specified `text_key`
|
2. `.jsonl` containing a user specified `text_key`
|
||||||
3. Files with any other extension are assumed to be plain text files containing a single document.
|
3. Files with any other extension are assumed to be plain text files containing
|
||||||
|
a single document.
|
||||||
|
|
||||||
When a directory is provided it is traversed recursively to collect all files.
|
When a directory is provided it is traversed recursively to collect all files.
|
||||||
|
|
||||||
|
@ -1218,7 +1219,6 @@ be provided.
|
||||||
> $ python -m spacy find-threshold my_nlp data.spacy spancat threshold spans_sc_f
|
> $ python -m spacy find-threshold my_nlp data.spacy spancat threshold spans_sc_f
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `model` | Pipeline to evaluate. Can be a package or a path to a data directory. ~~str (positional)~~ |
|
| `model` | Pipeline to evaluate. Can be a package or a path to a data directory. ~~str (positional)~~ |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user