Skip to main content

Natural Language Generator with Markov

Project description

Makover is natural language generation, where you’ll train a model how to speak and have it generate new text for you. You may use the simplest possible model, but the results may still surprise you in their sophistication.

Sample Image

Dependencies

  • Python 2.7

Install

  • Install via pip: $ pip install markover

Usage

  • $ markover -t ABS_PATH_TO_YOUR_TEXT_FILE -n LENGTH_OF_TEXT_TO_BE_GENERATED -c (optional)LENGTH_OF_CHUNKS_TO_BE_PROCESSED_AT_A_TIME

The last argument (-c) is optional. The default value for it is 10 characters per chunk. Try generating texts using various chunks. You should observe that for small c (c= 1, 2, 3), the generated text resembles but is not quite English (or whatever language utilized by your modeled text). For higher order c, the text should start looking more and more like the original text.

Enjoy!

  • A new text file called “output.txt” is created in the same folder as the file you selected.

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

markover-1.3.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

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