Auto-format

This commit is contained in:
Ines Montani 2019-08-20 15:06:31 +02:00
parent 072860fcd0
commit 7e8be44218
1 changed files with 6 additions and 4 deletions

View File

@ -71,7 +71,7 @@ from .train import _load_pretrained_tok2vec
"renamed. Prevents unintended overwriting of existing weight files.", "renamed. Prevents unintended overwriting of existing weight files.",
"option", "option",
"es", "es",
int int,
), ),
) )
def pretrain( def pretrain(
@ -169,12 +169,14 @@ def pretrain(
if not epoch_start: if not epoch_start:
msg.fail( msg.fail(
"You have to use the '--epoch-start' argument when using a renamed weight file for " "You have to use the '--epoch-start' argument when using a renamed weight file for "
"'--init-tok2vec'", exits=True "'--init-tok2vec'",
exits=True,
) )
elif epoch_start < 0: elif epoch_start < 0:
msg.fail( msg.fail(
"The argument '--epoch-start' has to be greater or equal to 0. '%d' is invalid" % epoch_start, "The argument '--epoch-start' has to be greater or equal to 0. '%d' is invalid"
exits=True % epoch_start,
exits=True,
) )
else: else:
# Without '--init-tok2vec' the '--epoch-start' argument is ignored # Without '--init-tok2vec' the '--epoch-start' argument is ignored