向量文件写不进来
flitdu opened this issue · 0 comments
flitdu commented
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()