mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-03 05:04:09 +03:00
Fix Python2 error on example
This commit is contained in:
parent
0d5b142c78
commit
7ed9124a45
|
@ -175,7 +175,7 @@ def evaluate_textcat(tokenizer, textcat, texts, cats):
|
||||||
train_examples=("Number of labelled examples", "option", "eg", int),
|
train_examples=("Number of labelled examples", "option", "eg", int),
|
||||||
vectors_model=("Name or path to vectors model to learn from")
|
vectors_model=("Name or path to vectors model to learn from")
|
||||||
)
|
)
|
||||||
def main(width: int, embed_size: int, vectors_model,
|
def main(width, embed_size, vectors_model,
|
||||||
pretrain_iters=30, train_iters=30, train_examples=1000):
|
pretrain_iters=30, train_iters=30, train_examples=1000):
|
||||||
random.seed(0)
|
random.seed(0)
|
||||||
numpy.random.seed(0)
|
numpy.random.seed(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user