question: public static List < Window > windows ( InputStream words , TokenizerFactory tokenizerFactory , int windowSize ) { Tokenizer tokenizer = tokenizerFactory . create ( words ) ; List < String > list = new ArrayList < > ( ) ; while ( tokenizer . hasMoreTokens ( ) ) list . add ( tokenizer . nextToken ( ) ) ; if ( list . isEmpty ( ) ) throw new IllegalStateException ( "No tokens found for windows" ) ; return windows ( list , windowSize ) ; }
target:  Constructs a list of window of size windowSize. Note that padding for each window is created as well.