org.cleartk.classifier.tksvmlight
Class TreeFeatureVector

java.lang.Object
  extended by org.cleartk.classifier.tksvmlight.TreeFeatureVector

public class TreeFeatureVector
extends Object


Copyright (c) 2011, Regents of the University of Colorado
All rights reserved.

Version:
0.2.1 A vector which contains both standard name number features and also tree features. All features that are named with the prefix "TK_" are treated as trees.
Author:
Daryl Lonnon

Constructor Summary
TreeFeatureVector()
           
 
Method Summary
 org.cleartk.classifier.util.featurevector.FeatureVector getFeatures()
          Get the standard (non-tree) features.
 LinkedHashMap<String,String> getTrees()
          Get the trees from the feature vector (i.e.
 void setFeatures(org.cleartk.classifier.util.featurevector.FeatureVector features)
          Sets the non-tree features.
 void setTrees(LinkedHashMap<String,String> trees)
          Set the trees.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeFeatureVector

public TreeFeatureVector()
Method Detail

getTrees

public LinkedHashMap<String,String> getTrees()
Get the trees from the feature vector (i.e. all features named with the prefix "TK_").

Returns:
A LinkedHashMap of all the trees.

setTrees

public void setTrees(LinkedHashMap<String,String> trees)
Set the trees.

Parameters:
trees - A LinkedHashMap of all the trees.

getFeatures

public org.cleartk.classifier.util.featurevector.FeatureVector getFeatures()
Get the standard (non-tree) features.

Returns:
A feature vector of all the standard features.

setFeatures

public void setFeatures(org.cleartk.classifier.util.featurevector.FeatureVector features)
Sets the non-tree features.

Parameters:
features - The features to set the non standard features to.


Copyright © 2013. All Rights Reserved.