System.gc();
if (args.length == 1) { // If no file of hyphenated words given
try {
directoryOfDelimitedFiles = args[0];
tokenizer = new TokenizerPTB();
new CreateAssertionLuceneIndexFromDelimitedFile(tokenizer);
} catch (Exception e) {
e.printStackTrace();
}
} else if (args.length == 3) { // else, use the file of hyphenated words
// during tokenization
try {
directoryOfDelimitedFiles = args[0];
// ** hyphnated file no longer needed. using the new PTB
// tokenizer instead. **
// String hyphFileLoc = args[1];
// int freqCutoff = Integer.parseInt(args[2]);
// Map hyphMap = loadHyphMap(hyphFileLoc);
// System.out.println("Processing hyphMap from : " +
// hyphFileLoc);
tokenizer = new TokenizerPTB();
new CreateAssertionLuceneIndexFromDelimitedFile(tokenizer);
} catch (Exception e) {
e.printStackTrace();
}
} else {