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

向量文件写不进来 #55

Open
flitdu opened this issue Sep 10, 2021 · 0 comments
Open

向量文件写不进来 #55

flitdu opened this issue Sep 10, 2021 · 0 comments

Comments

@flitdu
Copy link

flitdu commented Sep 10, 2021

Embedding.scala 如下代码,写操作无用,为何呢???????

val bw = new BufferedWriter(new FileWriter(file))
for (movieId <- model.getVectors.keys) {
  bw.write(movieId + "::" + model.getVectors(movieId).mkString(" ") + "\n")
  println(model.getVectors(movieId).mkString(" "))
}
bw.close()
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

1 participant