code: public static Analyzer createAnalyzer(final Tokenizer tokenizer,
              final int hashBit, final int seed, final int num) {
          final HashFunction[] hashFunctions = MinHash.createHashFunctions(seed,
                  num);
          final Analyzer minhashAnalyzer = new Analyzer() {
              @Override
              protected TokenStreamComponents createComponents(
                      final String fieldName) {
                  final TokenStream stream = new MinHashTokenFilter(
                          tokenizer, hashFunctions, hashBit);
                  return new TokenStreamComponents(tokenizer, stream);
              }
          };
          return minhashAnalyzer;
      }
docs: Create an analyzer to calculate a minhash.
  
  @param tokenizer a tokenizer to parse a text
  @param hashBit the number of hash bits
  @param seed a base seed for hash function
  @param num the number of hash functions
  @return analyzer used by {@link MinHash#calculate(Analyzer, String)}