|
| forward_trellis (uint64_t size, uint64_t labels) |
| Constructs a forward_trellis with the given number of time steps and labels. More...
|
|
double | normalizer (uint64_t idx) const |
|
void | normalize (uint64_t idx) |
| Performs normalization on the given time step and stores the normalizer. More...
|
|
| trellis (uint64_t size, uint64_t labels) |
| Constructs a new trellis with the given number of time steps and labels. More...
|
|
uint64_t | size () const |
|
void | probability (uint64_t idx, const label_id &tag, double prob) |
| Sets the value in the trellis for the given time step and label. More...
|
|
double | probability (uint64_t idx, const label_id &tag) const |
| Obtains the value in the trellis for the given time step and label. More...
|
|
Special trellis for the normalized forward algorithm.
In addition to storing the scores like a normal trellis, it also stores the normalizers (and can perform normalization on a given time step).