} 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