options.numHashes = numHashes;
options.vectorDimension = numFeatures;
options.hashFamily = HashFamily.getCosineHashFamily(options.vectorDimension, options.numHashes);
options.numPermutations = 5;
VectorParser<String> parser = new CSVParser(",");
IndexUtils.generateSingleThreadedIndex(options, parser, input, output);
IndexReader idxReader = new IndexReader(output);
idxReader.initializeSignatures();
PermutationIndexWriter permWriter = new PermutationIndexWriter(output, idxReader.signatures, options);
permWriter.createIndex();