|| annotation instanceof SymbolToken;
if ( isNonLookup ) {
continue;
}
final BaseToken bta = (BaseToken) annotation;
final LookupToken lt = new LookupAnnotationToJCasAdapter( bta );
// POS exclusion logic for first word lookup
if ( isTagExcluded( bta.getPartOfSpeech() ) ) {
lt.addStringAttribute( FirstTokenPermutationImpl.LT_KEY_USE_FOR_LOOKUP, FALSE_STRING );
} else {
lt.addStringAttribute( FirstTokenPermutationImpl.LT_KEY_USE_FOR_LOOKUP, TRUE_STRING );
}
if ( bta instanceof WordToken ) {
final WordToken wta = (WordToken) bta;
final String canonicalForm = wta.getCanonicalForm();
if ( canonicalForm != null ) {
lt.addStringAttribute( CANONICAL_VARIANT_ATTR, canonicalForm );
}
}
ltList.add( lt );
}
return ltList.iterator();