Commit c1ee2b28 authored by 高雅喆's avatar 高雅喆

change cid count

parent 48797936
......@@ -176,7 +176,7 @@ object Main {
val result = remapSecond.groupBy(_._1).map {
case (word1, similarWords) =>
// sort by score desc. and take top 10 entries
val similar = similarWords.toSeq.sortBy(-1 * _._3).filter(_._2.startsWith("diary")).take(10).map(_._2).mkString(",")
val similar = similarWords.toSeq.sortBy(-1 * _._3).filter(_._2.startsWith("diary")).take(50).map(_._2).mkString(",")
(word1,s"$similar")
}
result.take(20).foreach(println)
......
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