Generates permutations of all sentences, using list of words
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ak-phrase.py-1.0.6.tar.gz.
File metadata
- Download URL: ak-phrase.py-1.0.6.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f276e384f97bb471caeaaabc055e251dd1e9d4486bb4bc98681f87b72f5b8559
|
|
| MD5 |
91c43d699763729bef4249326ca7e276
|
|
| BLAKE2b-256 |
ea188ffd962c13ad600bca288b15c7aaf7b48918029bcb9d04fec1b9ecf4f623
|
File details
Details for the file ak_phrase.py-1.0.6-py3-none-any.whl.
File metadata
- Download URL: ak_phrase.py-1.0.6-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736ec1d4aff8801d125ad0fb72fec76b2a56c1506d574a6c5a10f09c847d2556
|
|
| MD5 |
bf6be95f595bce8c9a882464bd0890e4
|
|
| BLAKE2b-256 |
4940ccfeb5d1cc94079c5c48ca70016177527b16e67403fb653070778725f6d1
|