Cloning and running a project template with Weasel
The spacy weasel clone command clones a project template from a Git repository. It uses spaCy’s project template repo (https://github.com/explosion/projects) by default, but you can provide any other repo you have access to (public or private) using the --repo option.
In this chapter, we will use the categorization of emotions in Reddit posts (also referred to as text classification) project as our project template. Let’s go ahead and clone the project:
python3 -m weasel clone tutorials/textcat_goemotions
This command creates a textcat_goemotions folder in the current directory. The project.yml file defines everything related to the project. This includes assets and custom commands. The main sections of the project.yml files are as follows:
title: You guessed right, this defines the title of the project.description: An optional project description.vars: A dictionary of variables for paths, URLs...