ak-phrase.py
This library generates all the permutations of sentences from words in a 2D array.
It follows the word orders in sentence, same as the words order in array column wise.
Installation
$ pip3 install ak-phrase.py
Usage
from ak-phase.py import SentenceGenerator
word_lists = [['eat'], ['code', 'commit'], ['sleep']]
sentences = SentenceGenerator.generate_sentences(word_lists)
print(sentences)
# Output:
# [ 'eat code sleep', 'eat commit sleep' ]
Contributing
Interested in contributing to this project? You can log any issues or suggestion related to this library here
Read our contributing guide on getting started with contributing to the codebase
Contributors
Metadata
Release files for ak-phrase.py 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ak-phrase.py-1.0.6.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ak_phrase.py-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / ak-phrase.py-1.0.6.tar.gz
| Download URL | ak-phrase.py-1.0.6.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f276e384f97bb471caeaaabc055e251dd1e9d4486bb4bc98681f87b72f5b8559
|
|
BLAKE2b-256 checksum How to use checksums |
ea188ffd962c13ad600bca288b15c7aaf7b48918029bcb9d04fec1b9ecf4f623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / ak_phrase.py-1.0.6-py3-none-any.whl
| Download URL | ak_phrase.py-1.0.6-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
736ec1d4aff8801d125ad0fb72fec76b2a56c1506d574a6c5a10f09c847d2556
|
|
BLAKE2b-256 checksum How to use checksums |
4940ccfeb5d1cc94079c5c48ca70016177527b16e67403fb653070778725f6d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|