code: @Override
    public List<IN> classify(List<IN> document) {
      if (flags.doGibbs) {
        try {
          return classifyGibbs(document);
        } catch (Exception e) {
          System.err.println("Error running testGibbs inference!");
          e.printStackTrace();
          return null;
        }
      } else if (flags.crfType.equalsIgnoreCase("maxent")) {
        return classifyMaxEnt(document);
      } else {
        throw new RuntimeException("Unsupported inference type: " + flags.crfType);
      }
    }
docs: end class TestSequenceModel