Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Generate ngram iterator

Project description

This lib generate a ngram iterator

import pyngramgen
if __name__ == '__main__':
if len(sys.argv) != 2:
print "python %s n" % (sys.argv[0])
while True:
iput = raw_input()
obj = pyngramgen.PyNgramGen(int(sys.argv[1]), 'abcdefghijklmnopqrstuvwxyz')
for i in obj.generator(iput):
print i

Project details

Release history Release notifications

History Node


This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyngramgen-0.0.1.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Jun 15, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page