Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⛓️ Python package which provides you a simple way to generate phrases using Markov chains.

License

NotificationsYou must be signed in to change notification settings

jieggii/mc.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mc.py is a tiny and trivial Python package which provides youa simple way to generate phrases using Markov chains.

Docs can be foundhere.

Installation

Just install it usingpip or any other package manager you use:

pip install mc.py

Simple usage example

More examples can be foundhere.

importmcfrommc.builtinimportvalidatorsgenerator=mc.PhraseGenerator(samples=["hello world","world of cuties","bruh"])phrase=generator.generate_phrase(validators=[validators.words_count(minimal=4)])print(phrase)# >>> "hello world of cuties"

Links

About

⛓️ Python package which provides you a simple way to generate phrases using Markov chains.

Topics

Resources

License

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp