Github user Krimit commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17673#discussion_r113599808
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/Word2Vec.scala 
---
    @@ -194,6 +232,285 @@ final class Word2Vec @Since("1.4.0") (
     
       @Since("1.4.1")
       override def copy(extra: ParamMap): Word2Vec = defaultCopy(extra)
    +
    +  /**
    +   * Similar to InitUnigramTable in the original code. Instead of using an 
array of size 100 million
    +   * like the original, we size it to be 20 times the vocabulary size.
    --- End diff --
    
    why 20 times the vocabulary size? Also, this comment is misplaced. It 
belongs with the ``unigramTableSizeFactor``


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to