/**
  * Builds a new classifier by loading its definition in a file.
  *
  * @param filename The name of the file containing the definition of the classifier.
  * @return The newly created classifier.
  */
 public static Dollar1Classifier newClassifier(File filename) {
   Dollar1Classifier c = new Dollar1Classifier();
   try {
     c.read(new DataInputStream(new FileInputStream(filename)));
   } catch (FileNotFoundException e) {
     e.printStackTrace();
   } catch (IOException e) {
     e.printStackTrace();
   }
   return c;
 }
 /**
  * Builds a new classifier by loading its definition in a url.
  *
  * @param url The url containing the definition of the classifier.
  * @return The newly created classifier.
  */
 public static Dollar1Classifier newClassifier(URL url) {
   Dollar1Classifier c = new Dollar1Classifier();
   try {
     URLConnection urlc = null;
     urlc = url.openConnection();
     c.read(new DataInputStream(urlc.getInputStream()));
   } catch (FileNotFoundException e) {
     e.printStackTrace();
   } catch (IOException e) {
     e.printStackTrace();
   }
   return c;
 }