mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darius Miliauskas <>
Subject SparseVector, VectorWriter & VectorIterable
Date Wed, 04 Sep 2013 12:08:10 GMT
Dear All,

so, I followed the example given in Wiki for mahout (

        VectorWriter vectorWriter = SequenceFile.createWriter(filesystem,

        configuration, pathName, LongWritable.class, SparseVector.class);
        long numDocs = vectorWriter.write(new VectorIterable(),

1. However, I got the problem, and SparseVector can not be find. Can
somebody explain how should I add it?

2. The second problem I got that VectorWriter and Writer are incompatible.

3. Finally, VectorIterable. Can you tell me which class I should implement
in VectorIterable. I am working with the texts, to find the recommendation
for the text based on the text.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message