+ "As this is also checked within the #canEnhance(..) method this "
+ "indicates an Bug in the used EnhancementJobManager implementation. "
+ "Please report this on the dev@apache.stanbol.org or create an "
+ "JIRA issue about this.");
}
PaodingAnalyzer pa;
try {
pa = AccessController.doPrivileged(new PrivilegedExceptionAction<PaodingAnalyzer>() {
public PaodingAnalyzer run() throws Exception {
return new PaodingAnalyzer();
}
});
} catch (PrivilegedActionException pae){
Exception e = pae.getException();
log.error("Unable to initialise PoadingAnalyzer",e);
throw new EngineException("Unable to initialise PoadingAnalyzer",e);
}
TokenStream ts = pa.tokenStream("dummy", new CharSequenceReader(at.getText()));
int lastEnd = 0;
try {
while(ts.incrementToken()){
OffsetAttribute offset = ts.addAttribute(OffsetAttribute.class);
//when tokenizing labels we need to preserve all chars