org.encog.nlp.memory
Class Relation
java.lang.Object
org.encog.nlp.memory.Relation
public class Relation
- extends java.lang.Object
Note: This class is part of the Encog Natural Language Processing(NLP)
package. This package is still under heavy construction, and will not
be considered stable until Encog 3.0.
- Author:
- jheaton
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RELATION_NODE_NONE
public static final int RELATION_NODE_NONE
- See Also:
- Constant Field Values
RELATION_NODE_SOURCE
public static final int RELATION_NODE_SOURCE
- See Also:
- Constant Field Values
RELATION_NODE_TYPE
public static final int RELATION_NODE_TYPE
- See Also:
- Constant Field Values
RELATION_NODE_TARGET
public static final int RELATION_NODE_TARGET
- See Also:
- Constant Field Values
Relation
public Relation()
- Creates a new instance of Relation
Relation
public Relation(Concept source,
Concept type,
Concept target)
setShouldReplace
public void setShouldReplace(int shouldReplace)
getShouldReplace
public int getShouldReplace()
setSource
public void setSource(Concept source)
setType
public void setType(Concept type)
setTarget
public void setTarget(Concept target)
getSource
public Concept getSource()
getType
public Concept getType()
getTarget
public Concept getTarget()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
save
public java.lang.String save()
getNode
public Concept getNode(int target)
setNode
public void setNode(int target,
Concept concept)
isNodeEmpty
public boolean isNodeEmpty(int target)
getNextNode
public int getNextNode()
setNode
public void setNode(Concept concept)
forward
public static int forward(int node)