-
Notifications
You must be signed in to change notification settings - Fork 5
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
not chinese #6
Comments
I did this on a Linux box on this file. Not sure if this makes sense. I don't speak Chinese.
|
library(word2vec) result is below: How to solve this problem? My system is window.thank you! |
Write your cleaned text to a file and run word2vec from the file (e.g. below test.txt) instead of passing a character vector
|
Maybe R package version 0.4.0 solves this issue. It allows to build a word2vec model from a list of tokenised sentences. Closing, feel free to re-open if needed. |
file_in is this picture content
model <- word2vec(x = file_in, type = "cbow", dim = 15, iter = 20)
lookslike <- predict(model, c( "鹰"), type = "nearest", top_n = 5)
lookslike
Error in w2v_nearest(object$model, x = x, top_n = top_n, ...) :
Could not find the word in the dictionary: 鹰
but 鹰 is in this picture content.Can you provide an example in Chinese?
The text was updated successfully, but these errors were encountered: