List of usage examples for weka.filters Filter batchFilterFile
public static void batchFilterFile(Filter filter, String[] options) throws Exception
From source file:com.openkm.kea.filter.KEAFilter.java
License:Open Source License
/** * Main method for testing this class.// w w w. j a v a 2s. com * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new KEAFilter(new StopwordsEnglish()), argv); } else { Filter.filterFile(new KEAFilter(new StopwordsEnglish()), argv); } } catch (Exception ex) { log.info(ex.getMessage()); } }
From source file:com.openkm.kea.filter.KEAPhraseFilter.java
License:Open Source License
/** * Main method for testing this class./* w ww . ja v a 2s .co m*/ * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new KEAPhraseFilter(), argv); } else { Filter.filterFile(new KEAPhraseFilter(), argv); } } catch (Exception ex) { log.error(ex.getMessage(), ex); } }
From source file:com.openkm.kea.filter.NumbersFilter.java
License:Open Source License
/** * Main method for testing this class.// ww w . j a va2 s. c o m * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new NumbersFilter(), argv); } else { Filter.filterFile(new NumbersFilter(), argv); } } catch (Exception ex) { log.info(ex.getMessage()); } }
From source file:kea.KEAFilter.java
License:Open Source License
/** * Main method for testing this class.//from w w w .j a v a2 s. c o m * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new KEAFilter(), argv); } else { Filter.filterFile(new KEAFilter(), argv); } } catch (Exception ex) { System.out.println(ex.getMessage()); } }
From source file:kea.KEAPhraseFilter.java
License:Open Source License
/** * Main method for testing this class.//from w w w .j a v a 2 s.c o m * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new KEAPhraseFilter(), argv); } else { Filter.filterFile(new KEAPhraseFilter(), argv); } } catch (Exception ex) { System.out.println(ex.getMessage()); } }
From source file:kea.NumbersFilter.java
License:Open Source License
/** * Main method for testing this class./*from w w w. ja va2 s. c o m*/ * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new NumbersFilter(), argv); } else { Filter.filterFile(new NumbersFilter(), argv); } } catch (Exception ex) { System.out.println(ex.getMessage()); } }
From source file:net.sf.bddbddb.order.MyDiscretize.java
License:LGPL
/** * Main method for testing this class.// w w w .ja v a 2 s .c o m * * @param argv should contain arguments to the filter: use -h for help */ public static void main(String[] argv) { try { if (Utils.getFlag('b', argv)) { Filter.batchFilterFile(new MyDiscretize(), argv); } else { Filter.filterFile(new MyDiscretize(), argv); } } catch (Exception ex) { System.out.println(ex.getMessage()); } }