I am trying to implement an example that is able to generate n grams from a sentence (same question asked here N-gram generation from a sentence) with the current latest version of Lucene (Lucene 4.9). I found several examples, but made with previous versions of Lucene (one on all http://toolongdidntread.com/lucene/using-lucene-to-generate-n-grams/).
In all the examples, if you do not use the correct libraries (the correct version), I get an "abstract method error". Can someone help me to implement an example, using libraries of version 4.9?
Thanks in advance.