question: private void add ( int [ ] ngram , long value , long [ ] [ ] funcs ) { if ( ngram == null ) return ; int qValue = quantize ( value ) ; for ( int i = 1 ; i <= qValue ; i ++ ) { int hash = hashNgram ( ngram , 0 , ngram . length , i ) ; bf . add ( hash , funcs ) ; } }
target:  Adds an ngram, along with an associated value, to the Bloom filter. This corresponds to Talbot and Osborne's "Tera-scale LMs on the cheap", algorithm 1.