You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xusen Yin (JIRA)" <ji...@apache.org> on 2015/05/18 04:38:00 UTC
[jira] [Commented] (SPARK-7663) [MLLIB] feature.Word2Vec throws
empty iterator error when the vocabulary size is zero
[ https://issues.apache.org/jira/browse/SPARK-7663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547466#comment-14547466 ]
Xusen Yin commented on SPARK-7663:
----------------------------------
Got it. Thanks Sean.
> [MLLIB] feature.Word2Vec throws empty iterator error when the vocabulary size is zero
> -------------------------------------------------------------------------------------
>
> Key: SPARK-7663
> URL: https://issues.apache.org/jira/browse/SPARK-7663
> Project: Spark
> Issue Type: Improvement
> Components: ML, MLlib
> Affects Versions: 1.4.0
> Reporter: Xusen Yin
> Priority: Minor
>
> mllib.feature.Word2Vec at line 442: https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala#L442 uses `.head` to get the vector size. But it would throw an empty iterator error if the `minCount` is large enough to remove all words in the dataset.
> But due to this is not a common scenario, so maybe we can ignore it. If so, we can close the issue directly. If not, I can add some code to print more elegant error hits.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org