if (action != "train") and (action != "tag") and (action != "train_eval"):
print("action not specifed, must be one of [train,train_eval,tag]")
embed_size, embedding_vector = make_embeddings_simple("/mnt/data/wikipedia/embeddings/crawl-300d-2M.vec", True)
if action == "train":
train(model, embedding_vector)
After Change
if (action != "train") and (action != "tag") and (action != "train_eval"):
print("action not specifed, must be one of [train,train_eval,tag]")
embedding_vector = Embeddings("fasttext-crawl").model
if action == "train":
train(model, embedding_vector)