Struct notmecab::ParserToken

source ·
pub struct ParserToken {
    pub surface: String,
    pub feature: String,
    pub original_id: u32,
    pub unknown: bool,
}

Fields§

§surface: String

Exact sequence of characters with which this token appeared in the string that was parsed.

§feature: String

Description of this token’s features.

The feature string contains almost all useful information, including things like part of speech, spelling, pronunciation, etc.

The exact format of the feature string is dictionary-specific.

§original_id: u32

Unique identifier of what specific lexeme realization this is, from the mecab dictionary. changes between dictionary versions.

§unknown: bool

Whether this token is known in the mecab dictionary or not.

A value of true means that the character or characters under this token could not be parsed as part of any words in context.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.