code: public Dataset<String, String> getDataset(ObjectBank<List<IN>> data, Dataset<String, String> origDataset) {
      if(origDataset == null) {
        return getDataset(data);
      }
      return getDataset(data, origDataset.featureIndex, origDataset.labelIndex);
    }
docs: Build a Dataset from some data. Used for training a classifier.
  
  By passing in an extra origDataset, you can get a Dataset based on featureIndex and
  classIndex in an existing origDataset.
  
  @param data This variable is a list of lists of CoreLabel.  That is,
  it is a collection of documents, each of which is represented
  as a sequence of CoreLabel objects.
  @param origDataset if you want to get a Dataset based on featureIndex and
  classIndex in an existing origDataset
  @return The Dataset which is an efficient encoding of the information
  in a List of Datums