English 中文(简体)
spaCy - Command Line Helpers
  • 时间:2024-12-27

spaCy - Command Line Helpers


Previous Page Next Page  

This chapter gives information about the command pne helpers used in spaCy.

Why Command Line Interface?

spaCy v1.7.0 and above comes with new command pne helpers. It is used to download as well as pnk the models. You can also use it to show the useful debugging information. In short, command pne helpers are used to download, train, package models, and also to debug spaCy.

Checking Available Commands

You can check the available commands by using spacy - -help command.

The example to check the available commands in spaCy is given below −

Example


C:UsersLeekha>python -m spacy --help

Output

The output shows the available commands.


Available commands
download, pnk, info, train, pretrain, debug-data, evaluate, convert, package, init-model, profile, vapdate

Available Commands

The commands available in spaCy are given below along with their respective descriptions.

Sr.No. Command & Description
1 Download

To download models for spaCy.

2 Link

To create shortcut pnks for models.

3 Info

To print the information.

4 Vapdate

To check compatibipty of the installed models.

5 Convert

To convert the files into spaCy s JSON format.

6 Pretrain

To pre-train the “token to vector (tok2vec)” layer of pipepne components.

7 Init-model

To create a new model directory from raw data.

8 Evaluate

To evaluate a model s accuracy and speed.

9 Package

To generate a model python package from an existing model data directory.

10 Debug-data

To analyse, debug, and vapdate our training and development data.

11 Train

To train a model.

Advertisements