001    package calhoun.analysis.crf.test;
002    
003    import org.apache.commons.logging.Log;
004    import org.apache.commons.logging.LogFactory;
005    
006    import calhoun.analysis.crf.Conrad;
007    import calhoun.util.AbstractTestCase;
008    
009    public class RealIOTest extends AbstractTestCase {
010            private static final Log log = LogFactory.getLog(RealIOTest.class);
011    
012            public void testRealFormatsNeg() throws Exception {
013                    Conrad.main(new String[] {"train", "test/input/realFormats/neg/config.xml", "test/input/realFormats/neg", "test/working/realFormats.ser"});
014            }
015    
016            public void testRealFormatsMulti() throws Exception {
017                    Conrad.main(new String[] {"train", "test/input/realFormats/multiConfig.xml", "test/input/realFormats/aln", "test/working/realFormats.ser"});
018            }
019    
020            public void testRealFormats2() throws Exception {
021                    Conrad.main(new String[] {"train", "test/input/realFormats/config2.xml", "test/input/realFormats", "test/working/realFormats.ser"});
022                    Conrad.main(new String[] {"test", "test/working/realFormats.ser", "test/input/realFormats", "test/working/realFormatsPredicted.txt"});
023            }
024    
025            public void testRealFormats() throws Exception {
026                    Conrad.main(new String[] {"train", "test/input/realFormats/config.xml", "test/input/realFormats", "test/working/realFormats.ser"});
027                    Conrad.main(new String[] {"test", "test/working/realFormats.ser", "test/input/realFormats", "test/working/realFormatsPredicted.txt"});
028            }
029    
030            public void testModulo() {
031                    log.warn("-1%3="+(-1%3));
032                    log.warn("-2%3="+(-2%3));
033                    log.warn("-3%3="+(-3%3));
034                    log.warn("-4%3="+(-4%3));
035            }
036            
037    }