mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-29 09:23:12 +03:00
add documentation
This commit is contained in:
parent
56c8d2db89
commit
fa6eceb5a7
|
@ -250,6 +250,32 @@ $ python -m spacy init labels [config_path] [output_path] [--code] [--verbose] [
|
||||||
| overrides | Config parameters to override. Should be options starting with `--` that correspond to the config section and value to override, e.g. `--paths.train ./train.spacy`. ~~Any (option/flag)~~ |
|
| overrides | Config parameters to override. Should be options starting with `--` that correspond to the config section and value to override, e.g. `--paths.train ./train.spacy`. ~~Any (option/flag)~~ |
|
||||||
| **CREATES** | The label files. |
|
| **CREATES** | The label files. |
|
||||||
|
|
||||||
|
## find-function {id="find-function",version="3.7",tag="command"}
|
||||||
|
|
||||||
|
Find the module, path and line number to the file for a given registered
|
||||||
|
function. This functionality is helpful to understand where registered
|
||||||
|
functions, as used in the config file, are defined.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ python -m spacy find-function [func_name] [--registry]
|
||||||
|
```
|
||||||
|
|
||||||
|
> #### Examples
|
||||||
|
>
|
||||||
|
> ```bash
|
||||||
|
> $ python -m spacy find-function spacy.TextCatBOW.v1
|
||||||
|
> ```
|
||||||
|
>
|
||||||
|
> ```bash
|
||||||
|
> #
|
||||||
|
> $ python -m spacy find-function spacy.TextCatBOW.v2 -r 'architectures'
|
||||||
|
> ```
|
||||||
|
|
||||||
|
| Name | Description |
|
||||||
|
| ------------------ | ----------------------------------------------------- |
|
||||||
|
| `func_name` | Name of the registered function. ~~str (positional)~~ |
|
||||||
|
| `--registry`, `-r` | Name of the catalogue registry. ~~str (option)~~ |
|
||||||
|
|
||||||
## convert {id="convert",tag="command"}
|
## convert {id="convert",tag="command"}
|
||||||
|
|
||||||
Convert files into spaCy's
|
Convert files into spaCy's
|
||||||
|
@ -1650,10 +1676,10 @@ $ python -m spacy huggingface-hub push [whl_path] [--org] [--msg] [--verbose]
|
||||||
> $ python -m spacy huggingface-hub push en_ner_fashion-0.0.0-py3-none-any.whl
|
> $ python -m spacy huggingface-hub push en_ner_fashion-0.0.0-py3-none-any.whl
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------- | ------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `whl_path` | The path to the `.whl` file packaged with [`spacy package`](https://spacy.io/api/cli#package). ~~Path(positional)~~ |
|
| `whl_path` | The path to the `.whl` file packaged with [`spacy package`](https://spacy.io/api/cli#package). ~~Path(positional)~~ |
|
||||||
| `--org`, `-o` | Optional name of organization to which the pipeline should be uploaded. ~~str (option)~~ |
|
| `--org`, `-o` | Optional name of organization to which the pipeline should be uploaded. ~~str (option)~~ |
|
||||||
| `--msg`, `-m` | Commit message to use for update. Defaults to `"Update spaCy pipeline"`. ~~str (option)~~ |
|
| `--msg`, `-m` | Commit message to use for update. Defaults to `"Update spaCy pipeline"`. ~~str (option)~~ |
|
||||||
| `--verbose`, `-V` | Output additional info for debugging, e.g. the full generated hub metadata. ~~bool (flag)~~ |
|
| `--verbose`, `-V` | Output additional info for debugging, e.g. the full generated hub metadata. ~~bool (flag)~~ |
|
||||||
| **UPLOADS** | The pipeline to the hub. |
|
| **UPLOADS** | The pipeline to the hub. |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user