public boolean hasAnyLemma ( String ... lemmas ) { boolean found = false ; for ( String lemma : lemmas ) { for ( AnalyzedToken reading : anTokReadings ) { if ( reading . getLemma ( ) != null ) { found = lemma . equals ( reading . getLemma ( ) ) ; if ( found ) { return found ; } } } } return found ; }
Checks if one of the token s readings has one of the given lemmas