Fix Python2 error on example

This commit is contained in:
Matthew Honnibal 2018-11-14 19:35:17 +01:00 committed by GitHub
parent 0d5b142c78
commit 7ed9124a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ def evaluate_textcat(tokenizer, textcat, texts, cats):
train_examples=("Number of labelled examples", "option", "eg", int),
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):
random.seed(0)
numpy.random.seed(0)