cython some predicate, fix ngrams