code: public void classifyAndWriteAnswersKBest(String testFile, int k,
                                         DocumentReaderAndWriter<IN> readerAndWriter)
      throws IOException
    {
      ObjectBank<List<IN>> documents =
        makeObjectBankFromFile(testFile, readerAndWriter);
      PrintWriter pw = IOUtils.encodedOutputStreamPrintWriter(System.out, "", true);
      classifyAndWriteAnswersKBest(documents, k, pw, readerAndWriter);
    }
docs: Load a test file, run the classifier on it, and then print the answers to
  stdout (with timing to stderr). This uses the value of flags.documentReader
  to determine testFile format.
  
  @param testFile The filename to test on.