nlp - CoreNLP API for N-grams? -


does corenlp have api getting unigrams, bigrams, trigrams, etc.?

for example, have string "i have best car ". love get:

i have the best car 

based on string passing.

if coding in java, check out getngrams* functions in stringutils class in corenlp.

you can use collectionutils.getngrams (which stringutils class uses too)