| Blockland Forums > Modification Help |
| How do I do a first-order markov chain? (Monty chatbot on torquescript) |
| << < (2/4) > >> |
| Ipquarx:
--- Quote from: Axolotl on March 10, 2012, 08:13:34 PM ---oh god I have to do an index simset of all of the word container simset IDs --- End quote --- Don't get all worked up now, think about it logically. Think of it like this: You have a word. That word has variables, saying what it can connect too. Each one of those is numbered, and the word has a connectedcount variable or something like that When you get a new sentence, it adds missing connections and increases that count. Just a splurge, but that makes sense to me. |
| otto-san:
i have a chatbot that does this you basically have a huge network of single-word values connected and logged by arrays (i stored it in a scriptobject) word[0] = word wordChain[word, 0] = wordc wordChain[word, 1] = wordc wordChains[word] = 1 words = 0 and so on, and then to get a string, you'd just start at a random word (word[getRandom(0, words)]) and then continue tagging on random strung words (wordChain[lastword, getRandom(0, wordChains[lastword])]) |
| Destiny/Zack0Wack0:
Yeah he's immensely over complicating it. |
| otto-san:
--- Quote from: Destiny/Zack0Wack0 on March 11, 2012, 12:20:27 AM ---Yeah he's immensely over complicating it. --- End quote --- who, me? |
| Destiny/Zack0Wack0:
--- Quote from: otto-san on March 11, 2012, 12:33:11 AM ---who, me? --- End quote --- The OP. |
| Navigation |
| Message Index |
| Next page |
| Previous page |