Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in train_word2vec: "Error in if (binary) { : argument is of length zero" #60

Open
emarkianos opened this issue Mar 1, 2020 · 1 comment

Comments

@emarkianos
Copy link

I'm trying to train a model, and ran this in R using a plain text file* that I'd prepared using prep_word2vec:
girl.model <- train_word2vec("girls.txt", output_file = "~/MOC_Project/Data/girl_vectors", vectors = 300, threads = 2, window = 12, classes = 0, min_count = 5, iter = 5, force = TRUE, negative_samples = 5)
I got these messages, which seemed OK:

Starting training using file /Users/ella/Desktop/Capstone/CSStuff/MOC_Project/Scripts/girls.txt
Vocab size: 18998
Words in train file: 1006509

And then, after about a minute, I got this error:

Error in if (binary) { : argument is of length zero

I have no idea what caused this, but it seems like I can't train the model.

*Of a bunch of old social media profiles, which probably isn't relevant

@sveisa
Copy link

sveisa commented Jul 2, 2021

I have the same problem. I get the same error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants