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]
pub fn labels(&self) -> Result<Vec<String>>
[src]
Obtain the list of labels
pub fn tag(&mut self, xseq: &[Item]) -> Result<Vec<String>>
[src]
Predict the label sequence for the item sequence.
pub fn viterbi(&self) -> Result<Vec<String>>
[src]
Find the Viterbi label sequence for the item sequence.
pub fn probability<T: AsRef<str>>(&self, yseq: &[T]) -> Result<f64>
[src]
Compute the probability of the label sequence.
pub fn marginal(&self, label: &str, position: i32) -> Result<f64>
[src]
Compute the marginal probability of the label.
Trait Implementations
impl<'a> Debug for Tagger<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more