|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmaxent.Feature
public class Feature
The Class Feature.
| Field Summary | |
|---|---|
int |
cp
The cp. |
int |
idx
The idx. |
int |
label
The label. |
java.lang.String |
strId
The str id. |
float |
val
The val. |
double |
wgt
The wgt. |
| Constructor Summary | |
|---|---|
Feature()
Instantiates a new feature. |
|
Feature(int label,
int cp)
Instantiates a new feature. |
|
Feature(int label,
int cp,
java.util.Map fmap)
Instantiates a new feature. |
|
Feature(java.lang.String str,
java.util.Map cpStr2Int,
java.util.Map lbStr2Int)
Instantiates a new feature. |
|
Feature(java.lang.String str,
java.util.Map cpStr2Int,
java.util.Map lbStr2Int,
java.util.Map fmap)
Instantiates a new feature. |
|
| Method Summary | |
|---|---|
void |
FeatureInit(int label,
int cp)
Feature init. |
void |
FeatureInit(java.lang.String str,
java.util.Map cpStr2Int,
java.util.Map lbStr2Int)
Feature init. |
int |
index(java.util.Map fmap)
Index. |
int |
strId2Idx(java.util.Map fmap)
Str id2 idx. |
int |
strId2IdxAdd(java.util.Map fmap)
Str id2 idx add. |
java.lang.String |
toString(java.util.Map cpInt2Str,
java.util.Map lbInt2Str)
To string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int idx
public java.lang.String strId
public int label
public int cp
public float val
public double wgt
| Constructor Detail |
|---|
public Feature()
public Feature(int label,
int cp)
label - the labelcp - the cp
public Feature(int label,
int cp,
java.util.Map fmap)
label - the labelcp - the cpfmap - the fmap
public Feature(java.lang.String str,
java.util.Map cpStr2Int,
java.util.Map lbStr2Int)
str - the strcpStr2Int - the cp str2 intlbStr2Int - the lb str2 int
public Feature(java.lang.String str,
java.util.Map cpStr2Int,
java.util.Map lbStr2Int,
java.util.Map fmap)
str - the strcpStr2Int - the cp str2 intlbStr2Int - the lb str2 intfmap - the fmap| Method Detail |
|---|
public void FeatureInit(int label,
int cp)
label - the labelcp - the cp
public void FeatureInit(java.lang.String str,
java.util.Map cpStr2Int,
java.util.Map lbStr2Int)
str - the strcpStr2Int - the cp str2 intlbStr2Int - the lb str2 intpublic int strId2Idx(java.util.Map fmap)
fmap - the fmap
public int strId2IdxAdd(java.util.Map fmap)
fmap - the fmap
public int index(java.util.Map fmap)
fmap - the fmap
public java.lang.String toString(java.util.Map cpInt2Str,
java.util.Map lbInt2Str)
cpInt2Str - the cp int2 strlbInt2Str - the lb int2 str
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||