code: public static <T extends HasWord> TokenizerFactory<T> factory(LexedTokenFactory<T> factory, String options) {
      return new PTBTokenizerFactory<T>(factory, options);
  
    }
docs: Get a TokenizerFactory that does Penn Treebank tokenization.
  This is now the recommended factory method to use.
  
  @param factory A TokenFactory that determines what form of token is returned by the Tokenizer
  @param options A String specifying options (see the class javadoc for details)
  @param <T> The type of the tokens built by the LexedTokenFactory
  @return A TokenizerFactory that does Penn Treebank tokenization