User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
2mo
may have nerd sniped myself into building a markov chain text generator from scratch with no libraries and have not slept since i last said it was 3 am troll_face
1
0
5
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
2mo
i have not read any of the theory im just going off of what i feel like ought to work
1
0
4
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
so far looking good. a fair bit of "repeating the source verbatim" but
- i'm still not entirely sure on how to best tinker with the random weights to get it to be a bit more random without getting completely incomprehensible
- i have not written any checks for that cuts off and retries generation, which the python library i used to use has
- my corpus is quite small (i dont Post nearly enough i thibk)
1
0
3
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
2
0
2
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
1
1
1
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
i tihnk the core challenges of markov chain text generation are:
1 - keeping cruft out of your very limited context window (i can only go up to like 3 tokens before it starts commonly repeating me verbatim)
2 - managing how precise you want the context to be. in a lot of cases you probably don't actually want every token to be on there, as some of them don't really change meaning all that much and result in overfitting to exact phrasing which then ends up as repeating the corpus
1
0
0
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
yes i still did not sleep yet
2
0
1
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
this is with a fresh unprocessed db export from this instance as opposed to the previous ones which were from my bluesky pds exported using the old kopper/markov code (which does it's own processing alongside my new tokenization)
1
0
0
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
you may end up noticing that, unlike current kopper/markov, this one can output capitalization and punctuation. :3
1
0
0
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
i have a horrible system in place where tokens get case-folded in the context window, and during text generation all probabilities for tokens that case-fold the same way (internally linked as "variations" on a "canonical" token) get summed up to the token that had the highest probability
1
0
0
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
also unlike the previous one i dropped the nlp library. thinking about it a bit too much i'm not sure how much benefit it really provided and just burnt cpu doing nothing
1
0
0
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
alright i added a feature to broaden the context when there's just one "uncontested" token to choose from and idk i may have just ruined it
1
0
0
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
decided to throw the code out as-is to git.gay/kopper/markov if anyone else wants to give it a spin or just read through it. i still want to build a full fledged fedi and maybe bsky bot around it but that can be for later
4
3
1
0
User avatar
kopper colon_three @kopper@not-brain.d.on-t.work
1mo
cc @autumn im kinda curious how it'd do with autumnated's corpus
1
0
0
0
User avatar
Two Hollywood Phonies @autumn@cafe.autumn.town
1mo
@kopper ill try it out let me just crawl out of bed ough
0
0
1
0