mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darius Miliauskas <dariui.miliaus...@gmail.com>
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 (
https://cwiki.apache.org/confluence/display/MAHOUT/Creating+Vectors+from+Text
):

        VectorWriter vectorWriter = SequenceFile.createWriter(filesystem,

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

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.


Thanks,

Darius

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