public class Bootstrap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
optimizeByteCode |
Constructor and Description |
---|
Bootstrap() |
Modifier and Type | Method and Description |
---|---|
void |
bootstrapMemory(Memory memory,
boolean addStates,
boolean pin)
Initialize the memory with the basic bootstrap networks.
|
void |
bootstrapNetwork(Network network)
Defines a generic network for classifying things.
|
void |
bootstrapSystem(Bot Bot,
boolean addStates)
Initialize Bot with the bootstrap xml networks.
|
static void |
checkInputVariable(Vertex input,
Network network) |
Vertex |
createAdjective(java.lang.String text,
Vertex meaning,
Network network)
Create the adjective with the meaning.
|
Vertex |
createArticle(java.lang.String text,
Vertex meaning,
Network network)
Create the article with the meaning.
|
Vertex |
createName(java.lang.String text,
Vertex meaning,
Network network)
Create the name with the meaning.
|
Vertex |
createNoun(java.lang.String text,
Vertex meaning,
Network network)
Create the noun with the meaning.
|
Vertex |
createOrdinal(java.lang.String text,
Vertex meaning,
Network network)
Create the word with the meaning.
|
Vertex |
createPronoun(java.lang.String text,
Vertex meaning,
Network network,
Primitive type)
Create the pronoun with the meaning.
|
Vertex |
createPronoun(java.lang.String text,
Vertex meaning,
Network network,
Primitive type,
Primitive type2)
Create the pronoun with the meaning.
|
Vertex |
createPunctuation(java.lang.String text,
Vertex meaning,
Network network)
Create the punctuation with the meaning.
|
Vertex |
createQuestion(java.lang.String text,
Primitive primitive,
Network network)
Create the question word and meaning.
|
Vertex |
createTypo(java.lang.String text,
Vertex meaning,
Network network)
Associate a typo, or misspelling.
|
Vertex |
createVerb(java.lang.String text,
Vertex meaning,
Primitive tense,
Network network,
java.lang.String[] conjugations)
Create the verb with the meaning.
|
Vertex |
createWord(java.lang.String text,
Vertex meaning,
boolean prime,
Network network)
Create the word with the meaning.
|
Vertex |
createWord(java.lang.String text,
Vertex meaning,
boolean prime,
Network network,
Primitive classification,
Primitive tense,
Primitive type,
Primitive type2,
java.lang.String[] conjugations)
Create the word with the meaning.
|
Vertex |
createWord(java.lang.String text,
Vertex meaning,
Network network)
Create the word with the meaning.
|
Vertex |
createWord(java.lang.String text,
Vertex meaning,
Network network,
Primitive classification)
Create the word with the meaning.
|
void |
englishNetwork(Network network)
Defines some key basic English words (to avoid re-learning each bootstrap).
|
static java.lang.String |
getNewStateText()
Define place holder for Self programmed state machine.
|
Vertex |
getVariable(Vertex source,
Network network) |
void |
languageNetwork(Network network)
Defines the basic concepts required for text/language processing.
|
void |
loadAvatarImages(Network network)
Load the default avatar images.
|
void |
loadScripts(Network network)
Defines some basic states.
|
static void |
main(java.lang.String[] args) |
void |
mathNetwork(Network network)
Defines some key basic math vertices.
|
void |
rebootstrapMemory(Memory memory)
Re-initialize the language state machines.
|
void |
renameMemory(Memory memory)
Initialize the memory with the basic bootstrap networks.
|
void |
renameMemory(Memory memory,
java.lang.String name,
boolean clearPrivateData)
Initialize the memory with the basic bootstrap networks.
|
void |
writeBootstrapXML()
Populates the basic bootstrap xml files for reseting/initializing a memory.
|
public static void main(java.lang.String[] args)
public void bootstrapSystem(Bot Bot, boolean addStates)
public void bootstrapMemory(Memory memory, boolean addStates, boolean pin)
public void renameMemory(Memory memory, java.lang.String name, boolean clearPrivateData)
public void renameMemory(Memory memory)
public void rebootstrapMemory(Memory memory)
public void writeBootstrapXML()
public void bootstrapNetwork(Network network)
public void loadScripts(Network network)
public void loadAvatarImages(Network network)
public static java.lang.String getNewStateText()
public void languageNetwork(Network network)
public void englishNetwork(Network network)
public void mathNetwork(Network network)
public Vertex createQuestion(java.lang.String text, Primitive primitive, Network network)
public Vertex createTypo(java.lang.String text, Vertex meaning, Network network)
public Vertex createNoun(java.lang.String text, Vertex meaning, Network network)
public Vertex createName(java.lang.String text, Vertex meaning, Network network)
public Vertex createAdjective(java.lang.String text, Vertex meaning, Network network)
public Vertex createVerb(java.lang.String text, Vertex meaning, Primitive tense, Network network, java.lang.String[] conjugations)
public Vertex createPronoun(java.lang.String text, Vertex meaning, Network network, Primitive type, Primitive type2)
public Vertex createPronoun(java.lang.String text, Vertex meaning, Network network, Primitive type)
public Vertex createArticle(java.lang.String text, Vertex meaning, Network network)
public Vertex createPunctuation(java.lang.String text, Vertex meaning, Network network)
public Vertex createWord(java.lang.String text, Vertex meaning, Network network)
public Vertex createWord(java.lang.String text, Vertex meaning, boolean prime, Network network)
public Vertex createWord(java.lang.String text, Vertex meaning, Network network, Primitive classification)
public Vertex createOrdinal(java.lang.String text, Vertex meaning, Network network)