Adapting Predicate to the token_mode options for text analysis