mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
prettier formatting
This commit is contained in:
parent
04fea09ffd
commit
799d226676
|
@ -474,7 +474,7 @@ report span characteristics such as the average span length and the span (or
|
|||
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 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>
|
||||
|
||||
|
@ -1187,7 +1187,6 @@ be provided.
|
|||
> $ python -m spacy find-threshold my_nlp data.spacy spancat threshold spans_sc_f
|
||||
> ```
|
||||
|
||||
|
||||
| Name | Description |
|
||||
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `model` | Pipeline to evaluate. Can be a package or a path to a data directory. ~~str (positional)~~ |
|
||||
|
|
|
@ -235,10 +235,10 @@ package to see what the oldest recommended versions of `numpy` are.
|
|||
Some additional options may be useful for spaCy developers who are editing the
|
||||
source code and recompiling frequently.
|
||||
|
||||
- Install in editable mode. Changes to `.py` files will be reflected as soon
|
||||
as the files are saved, but edits to Cython files (`.pxd`, `.pyx`) will
|
||||
require the `pip install` command below to be run again. Before installing in
|
||||
editable mode, be sure you have removed any previous installs with
|
||||
- Install in editable mode. Changes to `.py` files will be reflected as soon as
|
||||
the files are saved, but edits to Cython files (`.pxd`, `.pyx`) will require
|
||||
the `pip install` command below to be run again. Before installing in editable
|
||||
mode, be sure you have removed any previous installs with
|
||||
`pip uninstall spacy`, which you may need to run multiple times to remove all
|
||||
traces of earlier installs.
|
||||
|
||||
|
@ -247,8 +247,8 @@ source code and recompiling frequently.
|
|||
$ pip install --no-build-isolation --editable .
|
||||
```
|
||||
|
||||
- Build in parallel. Starting in v3.4.0, you can specify the number of
|
||||
build jobs with the environment variable `SPACY_NUM_BUILD_JOBS`:
|
||||
- Build in parallel. Starting in v3.4.0, you can specify the number of build
|
||||
jobs with the environment variable `SPACY_NUM_BUILD_JOBS`:
|
||||
|
||||
```bash
|
||||
$ pip install -r requirements.txt
|
||||
|
|
|
@ -365,7 +365,8 @@ nlp.enable_pipe("tagger")
|
|||
|
||||
In addition to `disable`, `spacy.load()` also accepts `enable`. If `enable` is
|
||||
set, all components except for those in `enable` are disabled. If `enable` and
|
||||
`disable` conflict (i.e. the same component is included in both), an error is raised.
|
||||
`disable` conflict (i.e. the same component is included in both), an error is
|
||||
raised.
|
||||
|
||||
```python
|
||||
# Load the complete pipeline, but disable all components except for tok2vec and tagger
|
||||
|
@ -1400,8 +1401,8 @@ Writing to a `._` attribute instead of to the `Doc` directly keeps a clearer
|
|||
separation and makes it easier to ensure backwards compatibility. For example,
|
||||
if you've implemented your own `.coref` property and spaCy claims it one day,
|
||||
it'll break your code. Similarly, just by looking at the code, you'll
|
||||
immediately know what's built-in and what's custom – for example,
|
||||
`doc.lang` is spaCy, while `doc._.language` isn't.
|
||||
immediately know what's built-in and what's custom – for example, `doc.lang` is
|
||||
spaCy, while `doc._.language` isn't.
|
||||
|
||||
</Accordion>
|
||||
|
||||
|
|
|
@ -63,8 +63,8 @@ All CNN pipelines have been extended with whitespace augmentation.
|
|||
|
||||
The English CNN pipelines have new word vectors:
|
||||
|
||||
| Package | Model Version | TAG | Parser LAS | NER F |
|
||||
| ----------------------------------------------- | ------------- | ---: | ---------: | ----: |
|
||||
| Package | Model Version | TAG | Parser LAS | NER F |
|
||||
| --------------------------------------------- | ------------- | ---: | ---------: | ----: |
|
||||
| [`en_core_web_md`](/models/en#en_core_web_md) | v3.3.0 | 97.3 | 90.1 | 84.6 |
|
||||
| [`en_core_web_md`](/models/en#en_core_web_md) | v3.4.0 | 97.2 | 90.3 | 85.5 |
|
||||
| [`en_core_web_lg`](/models/en#en_core_web_lg) | v3.3.0 | 97.4 | 90.1 | 85.3 |
|
||||
|
|
Loading…
Reference in New Issue
Block a user