code: public List<IN> classifyMaxEnt(List<IN> document) {
      if (document.isEmpty()) {
        return document;
      }
  
      SequenceModel model = getSequenceModel(document);
      return classifyMaxEnt(document, model);
    }
docs: Do standard sequence inference, using either Viterbi or Beam inference
  depending on the value of <code>flags.inferenceType</code>.
  
  @param document
  Document to classify. Classification happens in place. This
  document is modified.
  @return The classified document