摘要: 结果: 8sparksoyo+ + + +|id |words |features |+ + + +|0 |[soyo, spark, soyo2, soyo, 8] |(3,[0,1,2],[1.0,1.0,2.0])||1 |[soyo, hadoop, soyo, hadoop, xiaozh 阅读全文
posted @ 2017-10-28 20:57 soyosuyang 阅读(1137) 评论(0) 推荐(0) 编辑
摘要: package Spark_MLlib import org.apache.spark.ml.feature.Word2Vec import org.apache.spark.sql.SparkSession object 特征抽取_Word2Vec { val spark=SparkSession.builder().master("local").appName("Word... 阅读全文
posted @ 2017-10-28 14:53 soyosuyang 阅读(1359) 评论(0) 推荐(0) 编辑