Chunker

Trait Chunker 

Source
pub trait Chunker {
    // Required method
    fn chunk_sentence(
        &self,
        sentence: &[String],
        tags: &[Option<UPOS>],
    ) -> Vec<bool>;
}
Expand description

An implementer of this trait is capable of identifying the noun phrases in a provided sentence.

Required Methods§

Source

fn chunk_sentence( &self, sentence: &[String], tags: &[Option<UPOS>], ) -> Vec<bool>

Iterate over the sentence, identifying the noun phrases contained within. A token marked true is a component of a noun phrase. A token marked false is not.

Implementors§