code: public static ObjectStream<DocSample> getDocumentStream(
        final String inputData, String clearFeatures) throws IOException {
      final ObjectStream<String> docStream = IOUtils
          .readFileIntoMarkableStreamFactory(inputData);
      ObjectStream<DocSample> sampleStream = new DocSampleStream(clearFeatures,
          docStream);
      return sampleStream;
    }
docs: Getting the stream with the right corpus format.
  
  @param inputData
  the input data
  @param clearFeatures whether to reset the features for each document
  @return the stream from the several corpus formats
  @throws IOException
  the io exception