mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
02dafa3a84
* Add initial design for diff command For now, the diffing process looks like this: - The default config is created based from some values in the user config (e.g. which pipeline components were used, the lang, etc.) - The user must supply manually if it was optimized for acc/efficiency and if pretraining was involved. * Make diff command structure similar to siblings * Include gpu as a user option for CLI * Make variables more explicit * Fix type declaration for optimize enum * Improve docstrings for diff CLI * Add debug-diff to website API docs * Switch position of configs so that user config is modded * Add markdown flag for debug diff This commit adds a --markdown (--md) flag that allows easier copy-pasting to Github issues. Please note that this commit is dependent on an unreleased version of wasabi (for the time being). For posterity, the related PR is found here: https://github.com/ines/wasabi/pull/20 * Bump version of wasabi to 0.9.1 So that we can use the add_symbols parameter. * Apply suggestions from code review Co-authored-by: Ines Montani <ines@ines.io> * Update docs based on code review suggestions Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> * Change command name from diff -> diff-config * Clarify when options are relevant or not * Rerun prettier on cli.md Co-authored-by: Ines Montani <ines@ines.io> Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
40 lines
1.8 KiB
Python
40 lines
1.8 KiB
Python
from wasabi import msg
|
|
|
|
from ._util import app, setup_cli # noqa: F401
|
|
|
|
# These are the actual functions, NOT the wrapped CLI commands. The CLI commands
|
|
# are registered automatically and won't have to be imported here.
|
|
from .download import download # noqa: F401
|
|
from .info import info # noqa: F401
|
|
from .package import package # noqa: F401
|
|
from .profile import profile # noqa: F401
|
|
from .train import train_cli # noqa: F401
|
|
from .assemble import assemble_cli # noqa: F401
|
|
from .pretrain import pretrain # noqa: F401
|
|
from .debug_data import debug_data # noqa: F401
|
|
from .debug_config import debug_config # noqa: F401
|
|
from .debug_model import debug_model # noqa: F401
|
|
from .debug_diff import debug_diff # noqa: F401
|
|
from .evaluate import evaluate # noqa: F401
|
|
from .convert import convert # noqa: F401
|
|
from .init_pipeline import init_pipeline_cli # noqa: F401
|
|
from .init_config import init_config, fill_config # noqa: F401
|
|
from .validate import validate # noqa: F401
|
|
from .project.clone import project_clone # noqa: F401
|
|
from .project.assets import project_assets # noqa: F401
|
|
from .project.run import project_run # noqa: F401
|
|
from .project.dvc import project_update_dvc # noqa: F401
|
|
from .project.push import project_push # noqa: F401
|
|
from .project.pull import project_pull # noqa: F401
|
|
from .project.document import project_document # noqa: F401
|
|
|
|
|
|
@app.command("link", no_args_is_help=True, deprecated=True, hidden=True)
|
|
def link(*args, **kwargs):
|
|
"""As of spaCy v3.0, symlinks like "en" are not supported anymore. You can load trained
|
|
pipeline packages using their full names or from a directory path."""
|
|
msg.warn(
|
|
"As of spaCy v3.0, model symlinks are not supported anymore. You can load trained "
|
|
"pipeline packages using their full names or from a directory path."
|
|
)
|