After loading a word2vec model that I have trained and saved I get the
following error when trying to use the findSynonyms function:

synonyms = model.findSynonyms("pope", 20)
  File
"/Users/edgarvelasco/minhash/spark-1.5.1-bin-hadoop2.6/python/lib/pyspark.zip/pyspark/mllib/feature.py",
line 450, in findSynonyms
ValueError: too many values to unpack

I do not understand why this is occurring since this works perfectly fine
when I try to use this function directly after training a model without
saving. I am running this locally on my mac.

Thank you for the help.



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Pyspark-1-5-1-Error-when-using-findSynonyms-after-loading-Word2VecModel-tp24933.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

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

Reply via email to