* @param bitsPerElement Number of bits dedicated to one element
* @param nbHash Number of hash functions
*/
public static void writeSignatures(String outputPath, FileSystem fs, RetrievalEnvironment env,
String spamScoresPath, int bitsPerElement, int nbHash) throws IOException {
SpamPercentileScore spamScores = new SpamPercentileScore();
spamScores.initialize(spamScoresPath, fs);
int[] newDocids = DocumentUtility.spamSortDocids(spamScores);
int collectionSize = env.readCollectionTermCount();
Posting posting = new Posting();
FSDataOutputStream out;