public POSTrain(int iter) { this.iter = iter; rm = new POSConfigurator().getDefaultConfig(); this.init(); }
@Override public ResourceManager getDefaultConfig() { Property[] props = {CORPUS_PREFIX, TRAINING_DATA, DEV_DATA, TEST_DATA, TRAINING_AND_DEV_DATA, BASELINE_NAME, MIKHEEV_NAME, KNOWN_NAME, UNKNOWN_NAME, MODEL_PATH, BASELINE_MODEL_PATH, MIKHEEV_MODEL_PATH, KNOWN_MODEL_PATH, KNOWN_LEX_PATH, UNKNOWN_MODEL_PATH, UNKNOWN_LEX_PATH, BASELINE_LEX_PATH, MIKHEEV_LEX_PATH}; return new ResourceManager(generateProperties(props)); }
public POSTrain(int iter, String configFile) throws IOException { this.iter = iter; rm = new POSConfigurator().getConfig(new ResourceManager(configFile)); this.init(); }
public POSTrain(int iter) { this.iter = iter; rm = new POSConfigurator().getDefaultConfig(); this.init(); }
public POSTrain(int iter, String configFile) throws IOException { this.iter = iter; rm = new POSConfigurator().getConfig(new ResourceManager(configFile)); this.init(); }
@Override public ResourceManager getDefaultConfig() { Property[] props = {CORPUS_PREFIX, TRAINING_DATA, DEV_DATA, TEST_DATA, TRAINING_AND_DEV_DATA, BASELINE_NAME, MIKHEEV_NAME, KNOWN_NAME, UNKNOWN_NAME, MODEL_PATH, BASELINE_MODEL_PATH, MIKHEEV_MODEL_PATH, KNOWN_MODEL_PATH, KNOWN_LEX_PATH, UNKNOWN_MODEL_PATH, UNKNOWN_LEX_PATH, BASELINE_LEX_PATH, MIKHEEV_LEX_PATH}; return new ResourceManager(generateProperties(props)); }
public static void main(String[] args) { ResourceManager rm = new POSConfigurator().getDefaultConfig(); TestPOSModels test = new TestPOSModels(rm.getString("testData")); test.testAccuracy(); }
public static void main(String[] args) { ResourceManager rm = new POSConfigurator().getDefaultConfig(); TestPOSModels test = new TestPOSModels(rm.getString("testData")); test.testAccuracy(); }
/** * Implements the program described above. * * @param args The command line parameters. **/ public static void main(String[] args) { // Parse the command line // if (args.length != 1) { // logger.error("usage: java edu.illinois.cs.cogcomp.lbj.pos.TestPOS <text file>"); // System.exit(1); // } // String testingFile = args[0]; ResourceManager rm = new POSConfigurator().getDefaultConfig(); String testingFile = rm.getString("testData"); TestDiscrete.testDiscrete(new TestDiscrete(), new POSTagger(), new POSLabel(), new POSBracketToToken(testingFile), true, 0); } }
/** * Implements the program described above. * * @param args The command line parameters. **/ public static void main(String[] args) { // Parse the command line // if (args.length != 1) { // logger.error("usage: java edu.illinois.cs.cogcomp.lbj.pos.TestPOS <text file>"); // System.exit(1); // } // String testingFile = args[0]; ResourceManager rm = new POSConfigurator().getDefaultConfig(); String testingFile = rm.getString("testData"); TestDiscrete.testDiscrete(new TestDiscrete(), new POSTagger(), new POSLabel(), new POSBracketToToken(testingFile), true, 0); } }