Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph is the generic holder of all of the data for a certain graph of words needed to generate a markov chain.
func (*Graph) GenerateMarkovString ¶
GenerateMarkovString generates a random string based off of the current model in the graph.
func (*Graph) LoadPhrase ¶
LoadPhrase loads a whole phrase (be it a sentence, single word that someone said, or paragraph) into the graph. Splits the phrase along spaces in order to load each word into the chain.
Click to show internal directories.
Click to hide internal directories.