org.pandora.knowledge
Class Bootstrap

java.lang.Object
  extended by org.pandora.knowledge.Bootstrap

public class Bootstrap
extends java.lang.Object

Populates the basic bootstrap xml files for reseting/initializing a memory. Through running the main method the xml files will be created. Allows the bootstrap networks to be built through instead of xml.


Constructor Summary
Bootstrap()
           
 
Method Summary
 void bootstrapMemory(Memory memory)
          Initialize the memory with the basic bootstrap networks.
 void bootstrapNetwork(Network network)
          Defines a generic network for classifying things.
 void bootstrapSystem(Pandora pandora)
          Initialize Pandora with the bootstrap xml networks.
 Vertex createArticle(java.lang.String text, Vertex meaning, Network network)
          Create the article with the meaning.
 Vertex createNoun(java.lang.String text, Vertex meaning, Network network)
          Create the noun with the meaning.
 Vertex createNounVerbAdjectiveState(Network network)
          Define a basic language understanding state machine.
 Vertex createPlusState(Network network)
           
 Vertex createPronoun(java.lang.String text, Vertex meaning, Network network)
          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 createSelfState(Network network)
          Define place holder for Self programmed state machine.
 Vertex createVerb(java.lang.String text, Vertex meaning, Network network)
          Create the verb with the meaning.
 Vertex createWord(java.lang.String text, Vertex meaning, Network network)
          Create the word with the meaning.
 void deleteDeadInstances()
          Delete any instances with a single connect.
 void englishNetwork(Network network)
          Defines some key basic English words (to avoid re-learning each bootstrap).
 void languageNetwork(Network network)
          Defines the basic concepts required for text/language processing.
static void main(java.lang.String[] args)
           
 void mathNetwork(Network network)
          Defines some key basic math vertices.
 void rebootstrapAll()
          Reset all databases.
 void rebootstrapMemory(Memory memory)
          Re-initialize the language state machines.
 void stateMachineNetwork(Network network)
          Defines some basic states.
 void writeBootstrapXML()
          Populates the basic bootstrap xml files for reseting/initializing a memory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

main

public static void main(java.lang.String[] args)

bootstrapSystem

public void bootstrapSystem(Pandora pandora)
Initialize Pandora with the bootstrap xml networks.


bootstrapMemory

public void bootstrapMemory(Memory memory)
Initialize the memory with the basic bootstrap networks. These defines basic concepts.


rebootstrapAll

public void rebootstrapAll()
Reset all databases.


deleteDeadInstances

public void deleteDeadInstances()
Delete any instances with a single connect.


rebootstrapMemory

public void rebootstrapMemory(Memory memory)
Re-initialize the language state machines.


writeBootstrapXML

public void writeBootstrapXML()
Populates the basic bootstrap xml files for reseting/initializing a memory.


bootstrapNetwork

public void bootstrapNetwork(Network network)
Defines a generic network for classifying things.


stateMachineNetwork

public void stateMachineNetwork(Network network)
Defines some basic states.


createSelfState

public Vertex createSelfState(Network network)
Define place holder for Self programmed state machine.


createNounVerbAdjectiveState

public Vertex createNounVerbAdjectiveState(Network network)
Define a basic language understanding state machine. Understands simple sentences such as "Sky is blue", "Is sky blue?","Sky is not blue", "Is sky not blue?", "Bob is big", "Bob is big?", "Bob big", "Bob big?"


createPlusState

public Vertex createPlusState(Network network)

languageNetwork

public void languageNetwork(Network network)
Defines the basic concepts required for text/language processing.


englishNetwork

public void englishNetwork(Network network)
Defines some key basic English words (to avoid re-learning each bootstrap).


mathNetwork

public void mathNetwork(Network network)
Defines some key basic math vertices.


createQuestion

public Vertex createQuestion(java.lang.String text,
                             Primitive primitive,
                             Network network)
Create the question word and meaning.


createNoun

public Vertex createNoun(java.lang.String text,
                         Vertex meaning,
                         Network network)
Create the noun with the meaning.


createVerb

public Vertex createVerb(java.lang.String text,
                         Vertex meaning,
                         Network network)
Create the verb with the meaning.


createPronoun

public Vertex createPronoun(java.lang.String text,
                            Vertex meaning,
                            Network network)
Create the pronoun with the meaning.


createArticle

public Vertex createArticle(java.lang.String text,
                            Vertex meaning,
                            Network network)
Create the article with the meaning.


createPunctuation

public Vertex createPunctuation(java.lang.String text,
                                Vertex meaning,
                                Network network)
Create the punctuation with the meaning.


createWord

public Vertex createWord(java.lang.String text,
                         Vertex meaning,
                         Network network)
Create the word with the meaning.