Struct nlprule::tokenizer::chunk::Chunker[][src]

pub struct Chunker { /* fields omitted */ }

Predicts noun chunks and verb chunks through a Maximum Entropy Model. Grammatical number (i. e. singular and plural) is also assigned through the part-of-speech tags of the tokens.

Implementations

impl Chunker[src]

pub fn apply(&self, sentence: &mut IncompleteSentence<'_>)[src]

Populates the .chunks field of the passed tokens by predicting with the maximum entropy model.

Trait Implementations

impl Clone for Chunker[src]

impl<'de> Deserialize<'de> for Chunker[src]

impl Serialize for Chunker[src]

Auto Trait Implementations

impl RefUnwindSafe for Chunker

impl Send for Chunker

impl Sync for Chunker

impl Unpin for Chunker

impl UnwindSafe for Chunker

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.