apache/spark — pull request #3697 by jinntrance (2014-12-15 05:37:35+00:00)
Title: [MLLIB]SPARK-4846: When the vocabulary size is large, Word2Vec may yield OOM

make variables syn0Global and syn1Global lazy, in order that the high-order function passed to RDD.mapPartitionsWithIndex would not yield OutOfMemoryError(Requested array size exceeds VM limit) when serialized if syn0Global&syn1Global are too large arrays.