question: public static < W > int [ ] toArray ( final WordIndexer < W > wordIndexer , final List < W > list ) { final int [ ] ret = new int [ list . size ( ) ] ; for ( int i = 0 ; i < list . size ( ) ; ++ i ) { ret [ i ] = wordIndexer . getIndexPossiblyUnk ( list . get ( i ) ) ; } return ret ; }
target:  Converts an object representation to an int array. Does not add to the indexer.