Basic trellis for holding score data for the forward/backward algorithm.
More...
#include <trellis.h>
|
| 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...
|
|
Basic trellis for holding score data for the forward/backward algorithm.
meta::sequence::trellis::trellis |
( |
uint64_t |
size, |
|
|
uint64_t |
labels |
|
) |
| |
Constructs a new trellis with the given number of time steps and labels.
- Parameters
-
size | The number of time steps |
labels | The number of labels associated with each time step |
uint64_t meta::sequence::trellis::size |
( |
| ) |
const |
- Returns
- The number of time steps in the trellis.
void meta::sequence::trellis::probability |
( |
uint64_t |
idx, |
|
|
const label_id & |
tag, |
|
|
double |
prob |
|
) |
| |
Sets the value in the trellis for the given time step and label.
- Parameters
-
idx | The time step |
tag | The label |
prob | The value to be set |
double meta::sequence::trellis::probability |
( |
uint64_t |
idx, |
|
|
const label_id & |
tag |
|
) |
| const |
Obtains the value in the trellis for the given time step and label.
- Parameters
-
idx | The time step |
tag | The label |
- Returns
- the value in the trellis at that location
The documentation for this class was generated from the following files:
- /home/chase/projects/meta/include/sequence/trellis.h
- /home/chase/projects/meta/src/sequence/trellis.cpp