|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cogroo.tools.featurizer.FeatureSample
public class FeatureSample
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 |
|---|
public FeatureSample(String[] sentence,
String[] lemma,
String[] tags,
String[] feats)
sentence - training sentencetags - POS Tags for the sentencefeats - Feature tags
public FeatureSample(List<String> sentence,
List<String> lemma,
List<String> tags,
List<String> feats)
sentence - training sentencetags - POS Tags for the sentencefeats - Feature tags| Method Detail |
|---|
public String[] getSentence()
public String[] getLemmas()
public String[] getTags()
public String[] getFeatures()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||