Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Generate ngram iterator

Project description

Overview
========
This lib generate a ngram iterator

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

Project details


Download files

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

Files for pyngramgen, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyngramgen-0.0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page