Add train command to fabfile

This commit is contained in:
Matthew Honnibal 2018-03-01 18:15:26 +01:00
parent a1be01185c
commit dbbfc02bda
1 changed files with 5 additions and 0 deletions

5
fabfile.py vendored
View File

@ -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))