private static int[] translate(PennTreebankPOS[] tags) {
        int[] seq = new int[tags.length];
        
        for (int i = 0; i < tags.length; i++) {
            seq[i] = tags[i].ordinal();
        }

        return seq;
    }
private static int [ ] translate ( PennTreebankPOS [ ] tags ) { int [ ] seq = new int [ tags . length ] ; for ( int i = 0 ; i < tags . length ; i ++ ) { seq [ i ] = tags [ i ] . ordinal ( ) ; } return seq ; }
Translate a POS tag sequence to internal representation.