public boolean hasPartialPosTag ( String posTag ) { boolean found = false ; for ( AnalyzedToken reading : anTokReadings ) { if ( reading . getPOSTag ( ) != null ) { found = reading . getPOSTag ( ) . contains ( posTag ) ; if ( found ) { break ; } } } return found ; }
Checks if the token has a particular POS tag where only a part of the given POS tag needs to match .