spaCy - Link command



As name implies, this command will create a shortcut link for models. The models can either be a Python package or a local directory. The shortcut link enables the users to let them load models from any location using a custom name via spacy.load().

The Link command is as follows −

python -m spacy link [origin] [link_name] [--force]

Arguments

The table below explains its arguments −

ARGUMENT TYPE DESCRIPTION
Origin positional Here we need to provide the model name, whether it is package, or path to local directory.
link_name positional It is the name of the shortcut link to create.
--force, -f flag This argument will force overwriting of existing link.
--help, -h flag This argument will show help message and other available arguments.
spacy_command_line_helpers.htm
Advertisements