public class StringPredictionTree extends CART
Modifier and Type | Field and Description |
---|---|
static String |
ENC_LINE_END |
static String |
ENC_LINE_START |
featDef, logger, properties, rootNode
Constructor and Description |
---|
StringPredictionTree(BufferedReader reader,
FeatureDefinition featDefinition)
This constructs a new string prediction tree from a stream containing a tree in wagon format.
|
StringPredictionTree(Node aRootNode,
FeatureDefinition aFeatDef,
String[] aTargetDecoding) |
Modifier and Type | Method and Description |
---|---|
String |
getMostProbableString(FeatureVector aFV) |
String |
getMostProbableString(Target aTarget) |
Node |
interpretToNode(FeatureVector featureVector,
int minNumberOfData)
TODO: copied from CART, does not work as expected with minNumberOfData = 0
Passes the given item through this CART and returns the leaf Node, or the Node it stopped walking down.
|
String |
toString() |
interpret, interpretToNode, replaceLeafByCart
getDecisionNodeIterator, getDecisionNodes, getDirectedGraphNodeIterator, getDirectedGraphNodes, getFeatureDefinition, getLeafNodeIterator, getLeafNodes, getNodeIterator, getNodes, getNumNodes, getProperties, getRootNode, interpret, interpret, interpret, setRootNode
public static final String ENC_LINE_START
public static final String ENC_LINE_END
public StringPredictionTree(Node aRootNode, FeatureDefinition aFeatDef, String[] aTargetDecoding)
aRootNode
- the root node of this tree. This node has to be set to be a root node beforehand.aFeatDef
- the featureDefinition used in this treeaTargetDecoding
- aTargetDecodingpublic StringPredictionTree(BufferedReader reader, FeatureDefinition featDefinition) throws IOException
reader
- readerfeatDefinition
- featDefinitionIOException
- IOExceptionpublic String toString()
toString
in class DirectedGraph
public Node interpretToNode(FeatureVector featureVector, int minNumberOfData)
interpretToNode
in class CART
featureVector
- the feature vector to analyzeminNumberOfData
- the minimum number of data requested. If this is 0, walk down the CART until the leaf level.public String getMostProbableString(FeatureVector aFV)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.