code: public String[] decodeLemmas(String[] toks, String[] preds) {
      List<String> lemmas = new ArrayList<String>();
      for (int i = 0; i < toks.length; i++) {
        String lemma = StringUtils.decodeShortestEditScript(
            toks[i].toLowerCase(), preds[i]);
        // System.err.println("-> DEBUG: " + toks[i].toLowerCase() + " " +
        // preds[i] + " " + lemma);
        if (lemma.length() == 0) {
          lemma = "_";
        }
        lemmas.add(lemma);
      }
      return lemmas.toArray(new String[lemmas.size()]);
    }
docs: Decodes the lemma from the word and the induced lemma class.
  
  @param toks
  the array of tokens
  @param preds
  the predicted lemma classes
  @return the array of decoded lemmas