Update docs for package command

This commit is contained in:
ines 2017-04-16 13:37:24 +02:00
parent 8191e33cf1
commit d29c825ca4

View File

@ -249,14 +249,16 @@ p
p p
| Generate a #[+a("/docs/usage/models#own-models") model Python package] | Generate a #[+a("/docs/usage/models#own-models") model Python package]
| from an existing model data directory. All data files are copied over, | from an existing model data directory. All data files are copied over.
| and the meta data can be entered directly from the command line. While | If the path to a meta.json is supplied, or a meta.json is found in the
| this feature is still experimental, the required file templates are | input directory, this file is used. Otherwise, the data can be entered
| downloaded from #[+src(gh("spacy-dev-resources", "templates/model")) GitHub]. | directly from the command line. While this feature is still experimental,
| This means you need to be connected to the internet to use this command. | the required file templates are downloaded from
| #[+src(gh("spacy-dev-resources", "templates/model")) GitHub]. This means
| you need to be connected to the internet to use this command.
+code(false, "bash"). +code(false, "bash").
python -m spacy package [input_dir] [output_dir] [--force] python -m spacy package [input_dir] [output_dir] [--meta] [--force]
+table(["Argument", "Type", "Description"]) +table(["Argument", "Type", "Description"])
+row +row
@ -269,6 +271,11 @@ p
+cell positional +cell positional
+cell Directory to create package folder in. +cell Directory to create package folder in.
+row
+cell #[code meta]
+cell option
+cell Path to meta.json file (optional).
+row +row
+cell #[code --force], #[code -f] +cell #[code --force], #[code -f]
+cell flag +cell flag