|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--opennlp.grok.knowledge.Brain
The Brain is the central processing point for many different bits of information. It coordinates a discourse model, generator, salience list and salience tracker as they update for the semantic expressions which the Brain is asked to evaluate.
| Field Summary | |
opennlp.common.discourse.AccommodatePolicy |
ap
The module which determines whether or not new discourse and isa information should be accommodated. |
opennlp.common.discourse.AccommodatePolicy |
qap
The module which determines whether or not new discourse and isa information should be accommodated during queries. |
| Constructor Summary | |
Brain()
class constructor: creates new empty Brain |
|
Brain(opennlp.common.generate.Generator g,
java.lang.String wkfile)
class constructor: creates new Brain with a generator and world knowledge |
|
Brain(java.lang.String wkfile)
|
|
| Method Summary | |
void |
addMouth(opennlp.common.generate.Mouth m)
Adds a mouth. |
boolean |
canTalk()
Returns false if there are no mouths for this Brain. |
opennlp.common.structure.KB |
getDM()
Returns the DM's DM heiarchy. |
opennlp.common.structure.Hierarchy |
getDMISA()
Returns the DM's ISA heiarchy. |
java.util.ArrayList |
getMouths()
Returns the objects which speak for this Brain. |
opennlp.common.discourse.SalienceList |
getSalList()
Access method for the salience list. |
opennlp.common.discourse.Referable |
interpret(opennlp.common.unify.Feature f,
opennlp.common.synsem.Denoter assert,
AltSet presupps)
Interpret a semantic form which the parser has produced. |
opennlp.common.discourse.Referable |
interpretLFs(opennlp.common.unify.Feature f,
opennlp.common.synsem.Denoter assert,
AltSet presupps)
|
void |
ModuleChanged(java.lang.String module,
java.lang.String instance)
Listen for changes in modules |
java.lang.String |
printEnts()
Prints the filecards in the discourse model. |
java.lang.String |
printProp()
Prints the propositions evaluated thus far. |
java.lang.String |
printSal()
Prints the salience list. |
void |
removeMouth(opennlp.common.generate.Mouth m)
Removes a mouth. |
void |
setMouths(java.util.ArrayList m)
Sets the objects which speak for this Brain. |
void |
speak(java.lang.String str)
Tel this Brain's mouths to say something. |
void |
stopTalking()
Tell this Brain's mouths to clear (stop saying whatever they were saying). |
java.lang.String |
toString()
Prints out the proposition list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public opennlp.common.discourse.AccommodatePolicy ap
public opennlp.common.discourse.AccommodatePolicy qap
| Constructor Detail |
public Brain()
public Brain(java.lang.String wkfile)
throws opennlp.common.structure.CatParseException
public Brain(opennlp.common.generate.Generator g,
java.lang.String wkfile)
throws opennlp.common.structure.CatParseException
g - The generator to use with this Brain.wkfile - The XML file which contains the world knowledge info.| Method Detail |
public opennlp.common.discourse.SalienceList getSalList()
public java.util.ArrayList getMouths()
public void setMouths(java.util.ArrayList m)
public void addMouth(opennlp.common.generate.Mouth m)
public void removeMouth(opennlp.common.generate.Mouth m)
public boolean canTalk()
public void speak(java.lang.String str)
public void stopTalking()
public opennlp.common.structure.Hierarchy getDMISA()
public opennlp.common.structure.KB getDM()
public java.lang.String printProp()
public java.lang.String printSal()
public java.lang.String printEnts()
public opennlp.common.discourse.Referable interpretLFs(opennlp.common.unify.Feature f,
opennlp.common.synsem.Denoter assert,
AltSet presupps)
public opennlp.common.discourse.Referable interpret(opennlp.common.unify.Feature f,
opennlp.common.synsem.Denoter assert,
AltSet presupps)
public void ModuleChanged(java.lang.String module,
java.lang.String instance)
ModuleChanged in interface ModuleListenerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||