From c8ba0f690d35562d200e495d8b3bbab4deaac9b2 Mon Sep 17 00:00:00 2001 From: BreakBB Date: Tue, 16 Jul 2019 12:30:38 +0200 Subject: [PATCH 1/3] Fix --force parameter of CLI package --- website/docs/api/cli.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/api/cli.md b/website/docs/api/cli.md index 7af134e40..bf89a67e8 100644 --- a/website/docs/api/cli.md +++ b/website/docs/api/cli.md @@ -422,6 +422,7 @@ pip install dist/en_model-0.0.0.tar.gz | `input_dir` | positional | Path to directory containing model data. | | `output_dir` | positional | Directory to create package folder in. | | `--meta-path`, `-m` 2 | option | Path to `meta.json` file (optional). | -| `--create-meta`, `-c` 2 | flag | Create a `meta.json` file on the command line, even if one already exists in the directory. If an existing file is found, its entries will be shown as the defaults in the command line prompt. | `--force`, `-f` | flag | Force overwriting of existing folder in output directory. | +| `--create-meta`, `-c` 2 | flag | Create a `meta.json` file on the command line, even if one already exists in the directory. If an existing file is found, its entries will be shown as the defaults in the command line prompt. +| `--force`, `-f` | flag | Force overwriting of existing folder in output directory. | | `--help`, `-h` | flag | Show help message and available arguments. | | **CREATES** | directory | A Python package containing the spaCy model. | From 3e370cf2ba6f1ab973254d01b4f4f4fabe8629cb Mon Sep 17 00:00:00 2001 From: BreakBB Date: Fri, 19 Jul 2019 09:58:50 +0200 Subject: [PATCH 2/3] Add 'Prof.' to Englisch tokenizer_exceptions --- spacy/lang/en/tokenizer_exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/lang/en/tokenizer_exceptions.py b/spacy/lang/en/tokenizer_exceptions.py index 9731dc752..6358b549b 100644 --- a/spacy/lang/en/tokenizer_exceptions.py +++ b/spacy/lang/en/tokenizer_exceptions.py @@ -532,6 +532,7 @@ for orth in [ "Ms.", "p.m.", "Ph.D.", + "Prof.", "Rep.", "Rev.", "Sen.", From 6d9a7c074983bb675ea79998a35c3c4d2ccff0a0 Mon Sep 17 00:00:00 2001 From: BreakBB Date: Fri, 19 Jul 2019 10:00:16 +0200 Subject: [PATCH 3/3] Add '--silent' argument to bash example of CLI Info --- website/docs/api/cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/api/cli.md b/website/docs/api/cli.md index bf89a67e8..62752beb4 100644 --- a/website/docs/api/cli.md +++ b/website/docs/api/cli.md @@ -86,11 +86,11 @@ generate [Markdown](https://en.wikipedia.org/wiki/Markdown)-formatted markup to copy-paste into [GitHub issues](https://github.com/explosion/spaCy/issues). ```bash -$ python -m spacy info [--markdown] +$ python -m spacy info [--markdown] [--silent] ``` ```bash -$ python -m spacy info [model] [--markdown] +$ python -m spacy info [model] [--markdown] [--silent] ``` | Argument | Type | Description |