Commit 10d6fed4 authored by 高雅喆's avatar 高雅喆

add log

parent 1423c987
......@@ -170,6 +170,10 @@ object Main {
import sc.implicits._
// remap both ids back to words
val remapFirst = similarityMatrix.entries.keyBy(_.i).join(index).values
println("get remapFirst")
println(remapFirst.first())
val remapSecond = remapFirst.keyBy { case (entry, word1) => entry.j }.join(index).values.map {
case ((entry, word1), word2) =>
(word1, word2, entry.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment