you might want to have a loot at

core/src/main/java/org/apache/mahout/vectorizer/SparseVectorsFromSequenceFiles.java

Regarding

http://people.apache.org/~isabel/mahout_site/mahout-matrix/apidocs/org/apache/mahout/matrix/SparseVector.html

it seems that this class does not exist anymore inside mahout-distribution-0.8, because the following directory seems to be "empty"

math/src/main/java/org/apache/mahout/math/matrix

HTH

Michael

Am 04.09.13 14:08, schrieb Darius Miliauskas:
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


Reply via email to