All Projects → tasdikrahman → markovipy

tasdikrahman / markovipy

Licence: other
Yet another markov chain sentence generator

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to markovipy

mchmm
Markov Chains and Hidden Markov Models in Python
Stars: ✭ 89 (+270.83%)
Mutual labels:  probability, markov-chain
alea
Coq library for reasoning on randomized algorithms [maintainers=@anton-trunov,@volodeyka]
Stars: ✭ 20 (-16.67%)
Mutual labels:  probability
bayseg
An unsupervised machine learning algorithm for the segmentation of spatial data sets.
Stars: ✭ 46 (+91.67%)
Mutual labels:  markov-chain
actuar
Actuarial functions and heavy tailed distributions for R
Stars: ✭ 19 (-20.83%)
Mutual labels:  probability
fattails
Code and Notes for fat-tailed statistics.
Stars: ✭ 41 (+70.83%)
Mutual labels:  probability
insobot
C99 modular IRC bot with markov chains
Stars: ✭ 71 (+195.83%)
Mutual labels:  markov-chain
markovifyR
Markovify wrapper for R
Stars: ✭ 81 (+237.5%)
Mutual labels:  markov-chain
discrete-math-python-scripts
Python code snippets from Discrete Mathematics for Computer Science specialization at Coursera
Stars: ✭ 98 (+308.33%)
Mutual labels:  probability
Undergraduate-in-Statistics
Using Computer with your Statistics Major Course
Stars: ✭ 57 (+137.5%)
Mutual labels:  probability
gospn
A free, open-source inference and learning library for Sum-Product Networks (SPN)
Stars: ✭ 24 (+0%)
Mutual labels:  probability
awesome-conformal-prediction
A professionally curated list of awesome Conformal Prediction videos, tutorials, books, papers, PhD and MSc theses, articles and open-source libraries.
Stars: ✭ 998 (+4058.33%)
Mutual labels:  probability
Fluent-Random-Picker
Fluent Random Picker is a nice, performant, fluent way to pick random values. Probabilities can be specified, values can be weighted.
Stars: ✭ 26 (+8.33%)
Mutual labels:  probability
Mathematics for Machine Learning
Learn mathematics behind machine learning and explore different mathematics in machine learning.
Stars: ✭ 28 (+16.67%)
Mutual labels:  probability
lm-scorer
📃Language Model based sentences scoring library
Stars: ✭ 264 (+1000%)
Mutual labels:  probability
Deep-Learning-Mahjong---
Reinforcement learning (RL) implementation of imperfect information game Mahjong using markov decision processes to predict future game states
Stars: ✭ 45 (+87.5%)
Mutual labels:  markov-chain
MMCAcovid19.jl
Microscopic Markov Chain Approach to model the spreading of COVID-19
Stars: ✭ 15 (-37.5%)
Mutual labels:  markov-chain
DISCOTRESS
🦜 DISCOTRESS 🦜 is a software package to simulate and analyse the dynamics on arbitrary Markov chains
Stars: ✭ 20 (-16.67%)
Mutual labels:  markov-chain
markovclick
Python package to model clickstream data as a Markov chain. Inspired by R package clickstream.
Stars: ✭ 29 (+20.83%)
Mutual labels:  markov-chain
penney
Penney's Game
Stars: ✭ 14 (-41.67%)
Mutual labels:  probability
appliedstats
📊 Methods of Applied Statistics Course Textbook Repository
Stars: ✭ 134 (+458.33%)
Mutual labels:  probability

markovipy

Documentation Status Updates

logo

She tries striking conversations with you with her cohesive sentences after you have given her fill of text to her. And no she won’t complain about how big your corpus is. Also, don’t ask her if she can pass the turing test. She might not talk to you again.

I wrote a blog post explaining the motivation and what is there behind the scenes if you are interested

Demo

Demo

Installation

To install markovipy, run this command in your terminal:

$ pip install markovipy

This is the preferred method to install markovipy, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

Usage

To use markovipy in a project:

>>> from markovipy import MarkoviPy
>>>
>>> # create MarkoviPy object
>>> obj = MarkoviPy("/Users/tasrahma/development/projects/markovipy/corpus/ts_eliot/Gerontion_utf8.txt", 3)
>>>
>>>
>>> # arguments passed, is the initial corpus file and the markov chain length(defaults to 2 if nothing passed)
>>> obj.generate_sentence()
'Cammel, whirled Beyond the circuit of the shuddering Bear In fractured atoms.'
>>>
>>> obj.generate_sentence()
'After such knowledge, what forgiveness? Think now History has many cunning passages, contrived corridors And issues, deceives with whispering ambitions, Guides us by vanities.'
>>>
>>> obj.generate_sentence()
'Gull against the wind, in the windy straits Of Belle Isle, or running on the Horn, White feathers in the snow, the Gulf claims, And an old man, a dull head among windy spaces.'
>>>
>>> obj.generate_sentence()
'Silvero With caressing hands, at Limoges Who walked all night in the field overhead; Rocks, moss, stonecrop, iron, merds.'
>>>
>>> obj.generate_sentence()
"Gives too soon Into weak hands, what's thought can be dispensed with Till the refusal propagates a fear."

Features

  • More tests to be added. As of now, some minimal tests have been written. Contributions more than welcome.
  • Create a web-interface with some fancy buttons/UI which would give you random quotes.

Links

Donation

If you have found my little bits of software being of any use to you, do consider helping me pay my internet bills :)

Paypal badge

Instamojo

gratipay

patreon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].