Skip to content

向量文件写不进来 #55

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

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

向量文件写不进来 #55

rick29sz opened this issue Sep 10, 2021 · 0 comments

Comments

@rick29sz
Copy link

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