Struct crfsuite::Tagger
[−]
[src]
pub struct Tagger<'a> { /* fields omitted */ }
The tagger provides the functionality for predicting label sequences for input sequences using a model.
Methods
impl<'a> Tagger<'a>
[src]
fn labels(&self) -> Result<Vec<String>>
[src]
Obtain the list of labels
fn tag(&mut self, xseq: &[Item]) -> Result<Vec<String>>
[src]
Predict the label sequence for the item sequence.
fn viterbi(&self) -> Result<Vec<String>>
[src]
Find the Viterbi label sequence for the item sequence.
fn probability<T: AsRef<str>>(&self, yseq: &[T]) -> Result<f64>
[src]
Compute the probability of the label sequence.
fn marginal(&self, label: &str, position: i32) -> Result<f64>
[src]
Compute the marginal probability of the label.