mistralrs::llguidance::earley

Trait BiasComputer

pub trait BiasComputer: Send + Sync {
    // Required methods
    fn compute_bias<'a>(
        &self,
        rec: &mut ParserRecognizer<'a>,
        start: &[u8],
    ) -> SimpleVob;
    fn trie(&self) -> &TokTrie;
}

Required Methods§

fn compute_bias<'a>( &self, rec: &mut ParserRecognizer<'a>, start: &[u8], ) -> SimpleVob

fn trie(&self) -> &TokTrie

Implementors§