We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162d04a commit 4ad3836Copy full SHA for 4ad3836
mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala
@@ -434,9 +434,9 @@ class Word2Vec extends Serializable with Logging {
434
bcSyn1Global.unpersist(false)
435
}
436
newSentences.unpersist()
437
- expTable.unpersist()
438
- bcVocab.unpersist()
439
- bcVocabHash.unpersist()
+ expTable.destroy()
+ bcVocab.destroy()
+ bcVocabHash.destroy()
440
441
val wordArray = vocab.map(_.word)
442
new Word2VecModel(wordArray.zipWithIndex.toMap, syn0Global)
0 commit comments