From dbbfc02bda7bdb784c8be475d22423d969038e0f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 1 Mar 2018 18:15:26 +0100 Subject: [PATCH] Add train command to fabfile --- fabfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fabfile.py b/fabfile.py index 9eadfe32b..7f1bf40dc 100644 --- a/fabfile.py +++ b/fabfile.py @@ -81,3 +81,8 @@ def test(): with virtualenv(VENV_DIR) as venv_local: with lcd(path.dirname(__file__)): venv_local('pytest -x spacy/tests') + +def train(): + args = environ.get('SPACY_TRAIN_ARGS', '') + with virtualenv(VENV_DIR) as venv_local: + venv_local('spacy train {args}'.format(args=args))