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.
Usage
from sentence_generator 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
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
ak-phrase.py-1.0.3.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for ak_phrase.py-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b36e2d2985290c29bf7ae103a4fe9ef1f9c99584293d89dbf3b3b4bce2749c48 |
|
MD5 | 5648fc6ea651a8faed34f4e99ed3dfb5 |
|
BLAKE2b-256 | 1ccec79bc7e5858e2c9df52e389e73dc974badc9985ec9f1c39a04d813341552 |