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.2.tar.gz
(2.7 kB
view details)
File details
Details for the file pyngramgen-0.0.2.tar.gz
.
File metadata
- Download URL: pyngramgen-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d766013767724263c24a27898f53479898cb162a96566b0f75f58f84988905 |
|
MD5 | 8ce969ec7642e02941e582b62cb3b56c |
|
BLAKE2b-256 | 7c30a9758905bf311a600cfe5df42784e77f5bf7d700d1f18122a8721751e580 |