mirror of https://github.com/explosion/spaCy.git
Auto-format
This commit is contained in:
parent
072860fcd0
commit
7e8be44218
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue