Call toArray on the Vector and print that, or toBreeze.
On Oct 30, 2014 12:38 PM, "Andrejs Abele" wrote:
> Hi,
>
> I'm new to Mllib and spark. I'm trying to use tf-idf and use those values
> for term ranking.
> I'm getting tf values in vector format, but how can get the values of
> vector?
>
>
Hi,
I'm new to Mllib and spark. I'm trying to use tf-idf and use those values
for term ranking.
I'm getting tf values in vector format, but how can get the values of
vector?
val sc = new SparkContext(conf)
val documents: RDD[Seq[String]] =
sc.textFile("/home/andrejs/Datasets/dbpedia/test.t