Skip to main content

Generates permutations of all sentences, using list of words

Project description

ak-phrase.py

Build Status Repo Size Downloads LICENSE Version Last Commit

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

ak-phrase.py-1.0.6.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ak_phrase.py-1.0.6-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for ak-phrase.py-1.0.6.tar.gz
Algorithm Hash digest
SHA256 f276e384f97bb471caeaaabc055e251dd1e9d4486bb4bc98681f87b72f5b8559
MD5 91c43d699763729bef4249326ca7e276
BLAKE2b-256 ea188ffd962c13ad600bca288b15c7aaf7b48918029bcb9d04fec1b9ecf4f623

See more details on using hashes here.

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

Hashes for ak_phrase.py-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 736ec1d4aff8801d125ad0fb72fec76b2a56c1506d574a6c5a10f09c847d2556
MD5 bf6be95f595bce8c9a882464bd0890e4
BLAKE2b-256 4940ccfeb5d1cc94079c5c48ca70016177527b16e67403fb653070778725f6d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page