jmaxent
Class Observation

java.lang.Object
  extended by jmaxent.Observation

public class Observation
extends java.lang.Object

The Class Observation.


Field Summary
 int[] cps
          The cps.
 int curWordCp
          The cur word cp.
 int dictLabel
          The dict label.
 int humanLabel
          The human label.
 int modelLabel
          The model label.
 java.lang.String originalData
          The original data.
 
Constructor Summary
Observation()
          Instantiates a new observation.
Observation(int[] cps)
          Instantiates a new observation.
Observation(int humanLabel, int[] cps)
          Instantiates a new observation.
Observation(java.util.List intCps)
          Instantiates a new observation.
 
Method Summary
 java.lang.String toString(java.util.Map lbInt2Str)
          To string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originalData

public java.lang.String originalData
The original data.


cps

public int[] cps
The cps.


humanLabel

public int humanLabel
The human label.


modelLabel

public int modelLabel
The model label.


curWordCp

public int curWordCp
The cur word cp.


dictLabel

public int dictLabel
The dict label.

Constructor Detail

Observation

public Observation()
Instantiates a new observation.


Observation

public Observation(int[] cps)
Instantiates a new observation.

Parameters:
cps - the cps

Observation

public Observation(java.util.List intCps)
Instantiates a new observation.

Parameters:
intCps - the int cps

Observation

public Observation(int humanLabel,
                   int[] cps)
Instantiates a new observation.

Parameters:
humanLabel - the human label
cps - the cps
Method Detail

toString

public java.lang.String toString(java.util.Map lbInt2Str)
To string.

Parameters:
lbInt2Str - the lb int2 str
Returns:
the string