org.cogroo.tools.featurizer
Class FeatureSample

java.lang.Object
  extended by org.cogroo.tools.featurizer.FeatureSample

public class FeatureSample
extends Object

Class for holding features for a single unit of text.


Constructor Summary
FeatureSample(List<String> sentence, List<String> lemma, List<String> tags, List<String> feats)
          Initializes the current instance.
FeatureSample(String[] sentence, String[] lemma, String[] tags, String[] feats)
          Initializes the current instance.
 
Method Summary
 boolean equals(Object obj)
           
 String[] getFeatures()
          Gets the feature tags
 String[] getLemmas()
          Gets the training sentence
 String[] getSentence()
          Gets the training sentence
 String[] getTags()
          Gets the POS Tags for the sentence
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureSample

public FeatureSample(String[] sentence,
                     String[] lemma,
                     String[] tags,
                     String[] feats)
Initializes the current instance.

Parameters:
sentence - training sentence
tags - POS Tags for the sentence
feats - Feature tags

FeatureSample

public FeatureSample(List<String> sentence,
                     List<String> lemma,
                     List<String> tags,
                     List<String> feats)
Initializes the current instance.

Parameters:
sentence - training sentence
tags - POS Tags for the sentence
feats - Feature tags
Method Detail

getSentence

public String[] getSentence()
Gets the training sentence


getLemmas

public String[] getLemmas()
Gets the training sentence


getTags

public String[] getTags()
Gets the POS Tags for the sentence


getFeatures

public String[] getFeatures()
Gets the feature tags


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012-2013 CoGrOO. All Rights Reserved.