in reply to Re: Re: Fasten up NGram generation code?
in thread Fasten up NGram generation code?

Yes, I was assuming you meant that. I still find the OP's approach easier to modify to include different substring lengths.

But I'm quick with cut-and-paste.

Abigail