You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:21:23 UTC

[jira] [Updated] (SPARK-7618) Word2VecModel cache normalized wordVectors to speed up findSynonyms

     [ https://issues.apache.org/jira/browse/SPARK-7618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-7618:
--------------------------------
    Labels: bulk-closed  (was: )

> Word2VecModel cache normalized wordVectors to speed up findSynonyms
> -------------------------------------------------------------------
>
>                 Key: SPARK-7618
>                 URL: https://issues.apache.org/jira/browse/SPARK-7618
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>    Affects Versions: 1.3.1
>            Reporter: Eric Li
>            Priority: Minor
>              Labels: bulk-closed
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> In current implementation, each findSynonyms call will need to do a Euclidean Normalization (cosineVec / wordVecNorms), this is expensive. Caching a copy of normalized wordVectors will speed up multiple findSynonyms call. This is how the Google's word2vec C code implemented. 
> In addition, doing a lazy loading for wordVectors will be nice as well. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org