Updated NgramGenerator.py
Updated NgramGenerator.py