EventSet tmpevent;
URL url = getClass().getResource(JGAAPConstants.JGAAP_RESOURCE_PACKAGE + "wordnet");
IDictionary dict;
if (url.getProtocol().equalsIgnoreCase("jar")) {
throw new EventGenerationException(
"DefinitionsEventDriver is current not able to run using the jar. Please use ant with the source distrodution.");
} else {
dict = new Dictionary(url);
}
try {
dict.open();
} catch (Exception e) {
logger.error("Could not open WordNet Dictionary " + url, e);
throw new EventGenerationException("DefinitionsEventDriver failed to open WordNet");
}
String current = new String(text);
FastTag tagger = new FastTag();