replace ngram functions with their iterator counterparts, cf https://github.com/nltk/nltk/issues/527
Merge pull request #528 from jskda/master

Replace ngram functions with their iterator counterparts, cf https://github.com/nltk/nltk/issues/527