mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-08 22:03:24 +03:00
add docs
This commit is contained in:
parent
c74ab6a313
commit
d5ff0fecf8
|
@ -25,7 +25,6 @@ def test_cli_info():
|
||||||
raw_data = info(tmp_dir, exclude=[""])
|
raw_data = info(tmp_dir, exclude=[""])
|
||||||
assert raw_data["lang"] == "nl"
|
assert raw_data["lang"] == "nl"
|
||||||
assert raw_data["components"] == ["textcat"]
|
assert raw_data["components"] == ["textcat"]
|
||||||
assert raw_data["source"] == str(tmp_dir)
|
|
||||||
|
|
||||||
|
|
||||||
def test_cli_converters_conllu_to_docs():
|
def test_cli_converters_conllu_to_docs():
|
||||||
|
|
|
@ -61,20 +61,27 @@ markup to copy-paste into
|
||||||
[GitHub issues](https://github.com/explosion/spaCy/issues).
|
[GitHub issues](https://github.com/explosion/spaCy/issues).
|
||||||
|
|
||||||
```cli
|
```cli
|
||||||
$ python -m spacy info [--markdown] [--silent]
|
$ python -m spacy info [--markdown] [--silent] [--exclude]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> #### Example
|
||||||
|
>
|
||||||
|
> ```cli
|
||||||
|
> $ python -m spacy info en_core_web_lg --markdown
|
||||||
|
> ```
|
||||||
|
|
||||||
```cli
|
```cli
|
||||||
$ python -m spacy info [model] [--markdown] [--silent]
|
$ python -m spacy info [model] [--markdown] [--silent] [--exclude]
|
||||||
```
|
```
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ------------------------------------------------ | ----------------------------------------------------------------------------------------- |
|
| ------------------------------------------------ | --------------------------------------------------------------------------------------------- |
|
||||||
| `model` | A trained pipeline, i.e. package name or path (optional). ~~Optional[str] \(positional)~~ |
|
| `model` | A trained pipeline, i.e. package name or path (optional). ~~Optional[str] \(positional)~~ |
|
||||||
| `--markdown`, `-md` | Print information as Markdown. ~~bool (flag)~~ |
|
| `--markdown`, `-md` | Print information as Markdown. ~~bool (flag)~~ |
|
||||||
| `--silent`, `-s` <Tag variant="new">2.0.12</Tag> | Don't print anything, just return the values. ~~bool (flag)~~ |
|
| `--silent`, `-s` <Tag variant="new">2.0.12</Tag> | Don't print anything, just return the values. ~~bool (flag)~~ |
|
||||||
| `--help`, `-h` | Show help message and available arguments. ~~bool (flag)~~ |
|
| `--exclude`, `-e` | Comma-separated keys to exclude from the print-out. Defaults to `"labels"`. ~~Optional[str]~~ |
|
||||||
| **PRINTS** | Information about your spaCy installation. |
|
| `--help`, `-h` | Show help message and available arguments. ~~bool (flag)~~ |
|
||||||
|
| **PRINTS** | Information about your spaCy installation. |
|
||||||
|
|
||||||
## validate {#validate new="2" tag="command"}
|
## validate {#validate new="2" tag="command"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user