org.encog.nlp.memory
Class RelationHolder
java.lang.Object
org.encog.nlp.memory.RelationHolder
public class RelationHolder
- 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
|
Constructor Summary |
RelationHolder()
Creates a new instance of RelationHolder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationHolder
public RelationHolder()
- Creates a new instance of RelationHolder
add
public void add(Relation relation)
clear
public void clear()
getRelations
public java.util.List<Relation> getRelations()
add
public void add(RelationHolder holder)
contains
public boolean contains(Relation find)
dump
public void dump()
searchSource
public java.util.List<Relation> searchSource(Concept source)
searchSourceType
public java.util.List<Relation> searchSourceType(Concept source,
Concept type)
searchSourceTypeBase
public java.util.List<Relation> searchSourceTypeBase(Concept source,
Concept type)
searchTypeTarget
public java.util.List<Relation> searchTypeTarget(Concept type,
Concept target)
countTargets
public int countTargets(Concept concept,
Concept type)
getBaseConcepts
public java.util.Collection<Concept> getBaseConcepts()
getBaseRelations
public java.util.Collection<Relation> getBaseRelations()
createRelation
public Relation createRelation()
countNull
public int countNull()
findFirstEmpty
public int findFirstEmpty()
clearShouldReplace
public void clearShouldReplace()
countContents
public int countContents(int target)
replaceRelations
public void replaceRelations(java.util.List<Relation> list)