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
```
========
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyngramgen-0.0.1.tar.gz
(1.8 kB
view hashes)