thanks for this - unfortunately I was too busy to get back to this in a constructive way. The fix caused other problems so I had to go back to the version that created all those
temporary files for a while. I have now found some time to give more feedback:
The fix seems to intruduce a new problem: the same code that worked fine previously (but created the temporary files) now throws array out of bounds exceptions.
Here is a somewhat minimal test-case - when you run this with the new jar, it will throw an exception, when you run this with the old jar, it will work fine and create a file in /tmp
import edu.ucla.sspace.common.DocumentVectorBuilder;
import edu.ucla.sspace.common.SemanticSpace;
import edu.ucla.sspace.vector.DoubleVector;
import edu.ucla.sspace.vsm.VectorSpaceModel;
import edu.ucla.sspace.vector.DenseVector;
import java.io.BufferedReader;
SemanticSpace candidateListSemSpace = new VectorSpaceModel();
candidateListSemSpace.processDocument(new BufferedReader(new StringReader("This is some text")));
Properties tficfConfig = new Properties();
tficfConfig.put(VectorSpaceModel.MATRIX_TRANSFORM_PROPERTY,"edu.ucla.sspace.matrix.TfIdfTransform");
candidateListSemSpace.processSpace(tficfConfig);
DocumentVectorBuilder tficfVectorBuilder = new DocumentVectorBuilder(candidateListSemSpace);
DoubleVector tficfContextVector =
tficfVectorBuilder.buildVector(
new BufferedReader(new StringReader("This is also some text")),
new DenseVector(candidateListSemSpace.getVectorLength()));