code: private static int[][] translate(Map<String, Integer> symbol, Map<String, Integer> suffix, String[] o) {
          int[][] seq = new int[o.length][2];
          
          for (int i = 0; i < o.length; i++) {
              Integer index = symbol.get(o[i]);
              if (index != null) {
                  seq[i][0] = index;
              } else {
                  seq[i][0] = 0;
              }
              
              index = null;
              if (o[i].length() > 2) {
                  index = suffix.get(o[i].substring(o[i].length() - 2));
              }            
              if (index != null) {
                  seq[i][1] = index;
              } else {
                  seq[i][1] = -1;
              }
          }
  
          return seq;
      }
docs: Translate an observation sequence to internal representation.