text - Easiest way or lightlest library to get bigrams and trigrams in Java? -


i'd rather not have fire lingpipe if possible leaves me wondering if there quick, easy ways in java extract bigrams , trigrams string of text?

thanks

always easiest way use existing library. can take on simmetrics library. can use lucene ngramtokenizer. can implement algorithm yourself. first, have find words (using stringtokenizer) in text , generate n-grams need.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -