diff --git a/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala index adf1d2dc10fb4..1cc432c6a6214 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala @@ -18,9 +18,8 @@ package org.apache.spark.mllib.feature -import scala.util._ +import scala.util.{Random => Random} import scala.collection.mutable.ArrayBuffer -import scala.collection.mutable.HashMap import scala.collection.mutable import com.github.fommil.netlib.BLAS.{getInstance => blas} @@ -373,4 +372,4 @@ object Word2Vec extends Serializable with Logging { minCount: Int): Word2VecModel = { new Word2Vec(size,startingAlpha, window, minCount).fit(input) } -} \ No newline at end of file +} diff --git a/mllib/src/test/scala/org/apache/spark/mllib/feature/Word2VecSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/feature/Word2VecSuite.scala index 6e8cb94d44726..2a02ace83c380 100644 --- a/mllib/src/test/scala/org/apache/spark/mllib/feature/Word2VecSuite.scala +++ b/mllib/src/test/scala/org/apache/spark/mllib/feature/Word2VecSuite.scala @@ -37,4 +37,4 @@ class Word2VecSuite extends FunSuite with LocalSparkContext { assert(synons(0)._1 == "taiwan") assert(synons(1)._1 == "japan") } -} \ No newline at end of file +}