public void addEntryPattern(String pattern) { setAcceptEntry( Predicates2.<Weighted<Token>>and( getAcceptEntry(), Predicates2.compose(Predicates2.containsPattern(pattern), entryString()))); }
public void addFeaturesPattern(String pattern) { setAcceptFeatures( Predicates2.<Weighted<Token>>and( getAcceptFeatures(), Predicates2.compose(Predicates2.containsPattern(pattern), featureString()))); }