pre_solution2/docdiff.scala
changeset 384 6e1237691307
parent 346 663c2a9108d1
--- a/pre_solution2/docdiff.scala	Mon Dec 07 01:25:41 2020 +0000
+++ b/pre_solution2/docdiff.scala	Fri Jan 15 02:40:57 2021 +0000
@@ -34,7 +34,7 @@
     val occs1 = occurrences(lst1)
     val occs2 = occurrences(lst2)
     words.map{ w => occs1.getOrElse(w, 0) * occs2.getOrElse(w, 0) }.sum
-}
+}          
 
 //(4) Complete the functions overlap and similarity. The overlap of
 //    two documents is calculated by the formula given in the assignment