private void writeExtremeFeatures() {
   if (classifier instanceof MaxEnt) {
     MaxEnt m = (MaxEnt) classifier;
     try {
       // PrintWriter rankWriter = new PrintWriter("rank.log");
       PrintWriter extremeWriter = new PrintWriter("extreme.log");
       // m.printRank(rankWriter);
       m.printExtremeFeatures(extremeWriter, 70);
       // rankWriter.close();
       extremeWriter.close();
     } catch (FileNotFoundException ex) {
       Logger.getLogger(MyClassifierTrainer.class.getName()).log(Level.SEVERE, null, ex);
     }
   }
 }
 /**
  * print the feature weights for the MaxEnt model
  *
  * @param maxEnt
  * @param out
  */
 public static void printFeatureWeights(MaxEnt maxEnt, PrintStream out) {
   maxEnt.print(out);
 }