code: 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;
      }
docs: Translate a POS tag sequence to internal representation.