Skip to content

Markov commands now work!#55

Open
jellopudding wants to merge 23 commits into
masterfrom
build-j
Open

Markov commands now work!#55
jellopudding wants to merge 23 commits into
masterfrom
build-j

Conversation

@jellopudding
Copy link
Copy Markdown
Member

created a markov group that can read text, read massages and (un)intentionally spam chat! the way it stores the chain and such is a little odd, but it seems OK in memory usage.

Comment thread newmarkov.py
import json
import io
import random
import numpy
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really Curious At What NUMPY is used for.

Copy link
Copy Markdown
Member Author

@jellopudding jellopudding Dec 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's been a while since anyone's worked on this, but iirc it was basically used to select randomly from a list. I decided it would be easier to just add duplicates of a word to the list of possible words after a given word than do some other, infinitely more well thought out, solution.

To be honest if we were still working on this project we'd probably just do over everything from scratch in a more modular and well thought out fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants